[jboss-user] [JBoss Seam] - Re: DataTable Sorting Example

pete.muir@jboss.org do-not-reply at jboss.com
Wed Oct 24 17:05:17 EDT 2007


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 &gt; #{date1}</value>
  |       <value>d.dueDate &lt; #{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



More information about the jboss-user mailing list