[jboss-user] [JBoss Seam] - Re: Unit Testing EL in EJB-QL/HQL
gavin.king@jboss.com
do-not-reply at jboss.com
Thu Apr 12 19:00:08 EDT 2007
If you're using integration tests, Seam will proxy the EM.
If you're writing a unit test, and creating your own EM from an EMF, you need to do:
EntityManager em = new EntityManagerProxy( emf.createEntityManager() );
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036902#4036902
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036902
More information about the jboss-user
mailing list