The code looks like this
DetachedCriteria crit1 = DetachedCriteria.forEntityName("CommentBean");
crit1.addOrder(Order.desc("createDate"));
Criteria crit = crit1.getExecutableCriteria(session);
session is a thread local variable.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4209282#4209282
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4209282
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user