[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - DetachedCriteria exception

jgardner16 do-not-reply at jboss.com
Wed Feb 11 17:36:21 EST 2009


Hi I am trying to execute a query using a DetachedCriteria.  so I have 

@PersistenceContext(unitName = "contentDS") private Session session;

when I do Criteria crit = crit1.getExecutableCriteria(session); I get 

javax.ejb.EJBException: java.lang.ClassCastException: org.jboss.ejb3.entity.TransactionScopedHibernateSession

How can I fix this problem?


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

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



More information about the jboss-user mailing list