Issue Details (XML | Word | Printable)

Key: NUCJPA-3
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Andy Jefferson
Reporter: Andy Jefferson
Votes: 0
Watchers: 0
Operations

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

JPA : remove dependency on JDO implementation classes

Created: 30/Oct/07 09:08 AM   Updated: 01/Feb/11 08:37 PM   Resolved: 26/Jan/11 10:18 AM
Component/s: Dependency
Affects Version/s: None
Fix Version/s: 3.0.0.m1


 Description  « Hide
Currently the JPA EMF/EM have links to JDOPersistenceManagerFactory/JDOPersistenceManager. This means that currently we have to have datanucleus-api-jpa dependent on datanucleus-api-jdo.

If we instead just create a NucleusContext internally then the dependency on JDOPersistenceManagerFactory is removed, and also create a stubbed JPAPersistenceManager to satisfy the requirements of using the JDO enhancement contract. Thereafter we remove the linkage

Erik Bengtson made changes - 14/Feb/08 07:12 PM
Field Original Value New Value
Link This issue depends JAVAFIVEPLUGIN-100 [ JAVAFIVEPLUGIN-100 ]
Erik Bengtson made changes - 14/Feb/08 07:15 PM
Link This issue depends CORE-3505 [ CORE-3505 ]
Andy Jefferson made changes - 06/Mar/08 09:36 PM
Assignee Andy Jefferson [ andy ]
Andy Jefferson made changes - 06/May/08 08:47 AM
Project JPOX Java5 [ 10030 ] DataNucleus Java5 [ 10161 ]
Key JAVAFIVEPLUGIN-90 NUCJAVAFIVE-9
Component/s JPA [ 10082 ]
Fix Version/s 1.2.3 [ 10264 ]
Andy Jefferson made changes - 27/Aug/08 08:22 AM
Project DataNucleus Java5 [ 10161 ] DataNucleus JPA [ 10171 ]
Key NUCJAVAFIVE-9 NUCJPA-3
Andy Jefferson made changes - 04/Oct/08 06:37 AM
Assignee Andy Jefferson [ andy ]
Andy Jefferson made changes - 13/Nov/10 08:49 AM
Fix Version/s 3.0.0.release [ 11072 ]
Andy Jefferson made changes - 26/Jan/11 09:09 AM
Summary JPA : should have own StateManager to avoid dependency on JDO JPA : remove dependency on JDO implementation classes
Description Currently when using JPOX as a JPA implementation it uses the "JDOStateManagerImpl". It should really have its own "JPAStateManager" and avoid all dependence on JDO. This is dependent on ENHANCER-101 Currently the JPA EMF/EM have links to JDOPersistenceManagerFactory/JDOPersistenceManager. This means that currently we have to have datanucleus-api-jpa dependent on datanucleus-api-jdo.

If we instead just create a NucleusContext internally then the dependency on JDOPersistenceManagerFactory is removed, and also create a stubbed JPAPersistenceManager to satisfy the requirements of using the JDO enhancement contract. Thereafter we remove the linkage
Component/s Dependency [ 10270 ]
Andy Jefferson made changes - 26/Jan/11 09:12 AM
Comment [ EntityManagerFactoryImpl should also not depend on PMFImpl, and same for EntityManagerImpl which depends on PMImpl ]
Andy Jefferson made changes - 26/Jan/11 09:12 AM
Comment [ Not a priority IMHO ]
Andy Jefferson made changes - 26/Jan/11 09:12 AM
Comment [ EntityManagerFactoryImpl should extend ObjectManagerFactoryImpl in the same way as JDOPersistenceManagerFactory extends it. Means that we can get hold of ObjectManager's easily and then we can create an EntityManager for that ObjectManager. ]
Andy Jefferson made changes - 26/Jan/11 09:12 AM
Link This issue depends NUCCORE-2 [ NUCCORE-2 ]
Andy Jefferson made changes - 26/Jan/11 09:12 AM
Link This issue depends NUCJPA-1 [ NUCJPA-1 ]
Andy Jefferson added a comment - 26/Jan/11 10:18 AM
SVN trunk removes this linkage

Andy Jefferson made changes - 26/Jan/11 10:18 AM
Status Open [ 1 ] Resolved [ 5 ]
Assignee Andy Jefferson [ andy ]
Fix Version/s 3.0.0.m1 [ 11071 ]
Fix Version/s 3.0.0.release [ 11072 ]
Resolution Fixed [ 1 ]
Andy Jefferson made changes - 01/Feb/11 08:37 PM
Status Resolved [ 5 ] Closed [ 6 ]