[jboss-user] [JBoss Portal] - I Need HELP! EJB-QL

daniko do-not-reply at jboss.com
Thu May 15 08:00:15 EDT 2008


Hi, I need help to write query method for my portlet. I need find last record. I write next: 


<query-method>
<method-name>findLast</method-name>
<method-params>
</method-params>
</query-method>
<ejb-ql>select object(o) from Orders o where o.id=(select max(b.id) from Orders b)</ejb-ql>

But it does not work. How it will be correct? ))



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4151021#4151021

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4151021



More information about the jboss-user mailing list