[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Getting a session from entityManager
Ok, I solved a problem.Now I have another:(.Problem is :It doesn't retrieves expected result(it 's retrieve nothing). Is there any mistake in my code above? tnx, mb View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4071323#4071323 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4071323 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Getting a session from entityManager
Yes, entityManager works fine with method persist.Only I can't get Session from entityM. I'm going to try. tnx, mb View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4071205#4071205 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4071205 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Getting a session from entityManager
Hi, Does the EntityManager work normally, for example does em.persist() work ? I have had a problem berfore with em.getDelegate() returning an EntityManagerImpl which could not be cast to a session. In the end i had to call Session sess = (Session)((EntityManagerImpl)em.getDelegate()).getDelegate() or Session sess = (Session)((EntityManagerImpl)em.getDelegate()).getSession() Cheers, Andy View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4071171#4071171 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4071171 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Getting a session from entityManager
Any idea? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4071100#4071100 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4071100 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user