Issue Details (XML | Word | Printable)

Key: NUCCORE-922
Type: Improvement Improvement
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Andy Jefferson
Votes: 0
Watchers: 1
Operations

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

JPA : Enhance classes to implement org.datanucleus.enhancer.spi.Persistable to avoid dependency on JDO

Created: 30/Oct/07 09:03 AM   Updated: 23/Feb/13 07:07 AM
Component/s: Enhancer
Affects Version/s: None
Fix Version/s: None


 Description  « Hide
Currently DataNucleus enhances all classes to implement javax.jdo.spi.PersistenceCapable. This means that DataNucleus used as a JPA implementation has a dependency on JDO (jdo-api.jar). We could avoid this by enhancing specifically for JPA. The downside is that the user would have to have DataNucleus wherever they are using enhanced classes (rather than just jdo-api.jar), so benefit-wise its small.

All javax.jdo class usage is now restricted into very specific parts of org.datanucleus.enhancer (and NucleusContext) now so should be a (relatively!) straightforward job

Sort Order: Ascending order - Click to sort in descending order
Matthew T. Adams added a comment - 23/Feb/13 07:07 AM
This makes sense mainly for runtime enhancement. If you're enhancing with DataNucleus at runtime, then you **know** you're going to need DataNucleus stuff in the classpath to do it.