[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: DetachedCriteria exception
jgardner16
do-not-reply at jboss.com
Wed Feb 11 17:53:30 EST 2009
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
More information about the jboss-user
mailing list