Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 364490

Summary: Support access to EntityManager and Factory from Session/events
Product: z_Archived Reporter: James Sutherland <jamesssss>
Component: EclipselinkAssignee: Project Inbox <eclipselink.orm-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P2 CC: martin.grebac, tom.ware
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description James Sutherland CLA 2011-11-22 11:25:12 EST
If you use session or descriptor events in JPA, you cannot access or use the JPA EntityManager or Factory.  We should add back references to the Session and UnitOfWork back to the EntityManager and EntityManagerFactory.

We could link them directly, since we already have JPA dependencies from core, or we could set them as a property, or as an Object and add an unwrap or wrap API to Session to obtain them.
Comment 1 Tom Ware CLA 2011-12-02 10:25:15 EST
Setting target and priority.  See the following page for the meanings of these fields:

http://wiki.eclipse.org/EclipseLink/Development/Bugs/Guidelines

Community: Please vote for this bug if it is important to you.  Votes are one of the main criteria we use to determine which bugs to fix next.
Comment 2 Eclipse Webmaster CLA 2022-06-09 10:05:42 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink