Affects Version/s: 2.0
Fix Version/s: 1.1-JPA
KULRICE-6014 JPA Conversion Guide KULRICE-3795 JPA - Update/Create the conversion scripts KULRICE-4142 JPA Conversion: provide JPA implementation of org.kuali.rice.core.dao.GenericDao KULRICE-2473 Verify that all persistable objects are properly annotated for JPA KULRICE-10127 Create section in document for conversion from KNS+OJB to KRAD+JPA KULRICE-3813 JPA - JPA 2.0 testing KULRICE-10280 Add any items you've encountered to the internal JPA conversion approach document KULRICE-11725 Finish KIM RoleDao conversion for JPA KULRICE-13166 Investigate better option to materialize sub objects in JPA KULRICE-4440 Find out where the environment code is called and what it's used for
I'd like for someone to do an exercise to go both directions with all of this stuff and make sure the translation is implemented in the conversion scripts and documented in the guide. i.e. figure out what all of the ojb concepts should map to in JPA and then figure out if there are any JPA cascade mappings that should be set for everything (i.e. DETACH if we can get to jpa 2.0).
So something like this:
autoRetrieve=false - there's really no jpa equivalent, except it seems like it would make the most sense to make this a lazy fetch type, maybe make configurable in the script?
autoUpdate=true or object - CascadeType.PERSIST, CascadeType.MERGE
autoUpdate=none - no related cascade types
autoUpdate=false or link - no real JPA equivalent here, should probably treat as autoupdate=none?
autoDelete=true - CascadeType.REMOVE
CascadeType.REFRESH - there is no OJB equivalent to this, so by default should probably always annotate for this?
CascadeType.DETACH - there is no OJB equivalent, should probably always annotate for this?