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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to