Any valid hql/ejbql can be used in restrictions.
so
<framework:entity-query name="q" ejbql="select d from Deliverable d">
| <framework:restrictions>
| <value>d.dueDate > #{date1}</value>
| <value>d.dueDate < #{date2}</value>
| ...
should work (assuming your statement above is valid ejbql).
But you can also do
@Name("q")
| public class QQuery extends EntityQuery {
| // implement getRestrictions and getEjbql
for a more extensible system (n.b. it's NOT a session bean)
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098568#4098568
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098568
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user