Issue Details (XML | Word | Printable)

Key: NUCCORE-723
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 Core

Add persistence property(s) to control detach state (particularly for JPA)

Created: 23/Jun/11 09:48 AM   Updated: 01/Aug/11 10:23 AM   Resolved: 23/Jun/11 11:30 AM
Component/s: Lifecycles
Affects Version/s: None
Fix Version/s: 3.0.0.m6

 Description  « Hide
When we detach with JDO we have the fetch-groups to define what is detached. While we also allow that for JPA, it would also make sense to allow a persistence-property route to define
1. "loaded" - just detach loaded fields
2. "all" - detach all fields (full object graph)
3. "fetch-groups" - using the fetch groups API

Andy Jefferson added a comment - 23/Jun/11 11:30 AM
Added "datanucleus.detachedState" with possible values of "fetch-groups" (default), "all", "loaded". Also changed RetainValues to default to true for JPA (NUCJPA-141) to allow us to take advantage of "loaded" case

Andy Jefferson made changes - 23/Jun/11 11:30 AM
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Andy Jefferson made changes - 01/Aug/11 10:23 AM
Status Resolved [ 5 ] Closed [ 6 ]