[JBoss Seam] - entity query
by minamti
I am trying to create a data table with pagination. However my problem is that I would rather use the entity query defined in components.xml.
My query is somewhat like this
select itemDetail from Item item, ItemDetail itemDetail where item.itemId = itemDetail.id.itemId and item.expiryDate > :adate and item.userId = :currUser and itemDetail.id.itemDetailDate = (select max(i.id.itemDetailDate) from ItemDetail i where i.id.itemId = itemDetail.id.itemId)
The aDate and currUser is coming from an object.
If I have this query in a session bean and use the @Factory annotation to get the List, it works fine in a data Table.
Can I formulate the ejbql and restrcitions (including the subquery) ?
Thanks,
M
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106587#4106587
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106587
18 years, 8 months
[JBoss Seam] - Re: Myseam, the jboss seam2.0GA's expander framework, offers
by chlol
to 1 and 2,hibernate tools can not support these two functions too,but we need them very much ,so i developped myseam.I love jboss seam very much,but if it can add more characters of appfuse 1.9.x,it'll become more and more perfect.I have to say myseam was supplied to my own company to use at first,and after we used it we found it's very convenient ,so i share it now.if needed,i'd also like to do something to contribute to jboss seam.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106586#4106586
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106586
18 years, 8 months