DataNucleus JIRA is now in read-only mode. Raise any new issues in GitHub against the plugin that it applies to. DataNucleus JIRA will remain for the foreseeable future but will eventually be discontinued
Issue Details (XML | Word | Printable)

Key: NUCJPA-102
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Andy Jefferson
Reporter: Andy Jefferson
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.
DataNucleus API JPA

Add helper method to return the EntityManager for a persistable object

Created: 29/Jan/11 03:22 PM   Updated: 01/Feb/11 08:37 PM   Resolved: 29/Jan/11 03:23 PM
Component/s: None
Affects Version/s: None
Fix Version/s: 3.0.0.m1

 Description  « Hide
JPA only provides a method on the EntityManager to return if an object is "contained"by that manager. We ought to add a helper method to NucleusJPAHelper to return the EntityManager for a persistable object. If the object is detached/transient it will return null obviously.

Andy Jefferson added a comment - 29/Jan/11 03:23 PM
SVN trunk has
EntityManager NucleusJPAHelper.getEntityManager(Object);

Andy Jefferson made changes - 29/Jan/11 03:23 PM
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Andy Jefferson made changes - 01/Feb/11 08:37 PM
Status Resolved [ 5 ] Closed [ 6 ]