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: NUCCORE-1008
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Unassigned
Reporter: Andy Jefferson
Votes: 0
Watchers: 0

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

If detach an object with 1-1/N-1 relation, then attach it, it thinks the 1-1/N-1 field is changed so marks it as dirty even if it hasn't

Created: 12/Mar/13 10:35 AM   Updated: 06/Apr/13 09:59 AM   Resolved: 12/Mar/13 11:04 AM
Component/s: Persistence
Affects Version/s: 1.1.6, 2.0.5, 2.1.4, 2.2.4, 3.0.11, 3.1.4, 3.2.0.release
Fix Version/s: 3.2.1

 Description  « Hide
Whilst detached we have the dirty fields in the object. If the dirty field is not set then the field hasn't been changed (for a 1-1/N-1 object at least, for a 1-N/M-N we can't say that). Should just set the field of the attached object to the related attached object (and not mark it as dirty).

Sort Order: Ascending order - Click to sort in descending order
Andy Jefferson added a comment - 12/Mar/13 11:04 AM
SVN trunk resolves this for 1-1/N-1 fields