-
Sub-task
-
Resolution: Done
-
Major
-
None
-
None
-
None
-
Documentation (Ref Guide, User Guide, etc.), Interactive Demo/Tutorial
The reference documentation has a piece of code which shows how org.hibernate.Session can be accessed from a EntityManager:
You can get access to the current underlying Hibernate Session by typecasting your reference to EntityManager.
@PersistenceContext EntityManager entityManager;
public void someMethod();
This doesn't work in AS5. To get it working in AS5, we need to use entityManager.getDelegate() method. See the forum thread for details.
The intent of this JIRA is to create a new tutorial with these details (instead of having this in the reference doc which cannot be tracked for any code/API breakage).