emmanuel wrote:
emmanuel wrote:
(Session) entityManager.getDelegate();
is the preferred way to get the underlying session.
jstansel wrote:
I've read that in many places, but was unable to get it to work. I'm using the latest hibernate core, annotations and entitymanager on Glassfish.
Please report that as a bug in Glassfish, so that they fix it. We need to clarify the spec anyway.
Today I installed the lastest glassfish promoted build, v2-b44, and still see the same error.
Code:
java.lang.ClassCastException: org.hibernate.ejb.EntityManagerImpl
I don't see an existing bug filed in glassfish for this so I'll try to add one, and reply here with issue number.
-james.