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-854
Type: Bug Bug
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

ManagedRelations : update of a 1-1 field has an erroneous nulling of the field being set

Created: 15/May/12 09:06 PM   Updated: 04/Oct/12 05:02 PM   Resolved: 15/May/12 09:09 PM
Component/s: Persistence
Affects Version/s: 3.0.0.release, 3.0.10, 3.1.0.m3
Fix Version/s: 3.1.0.m4

 Description  « Hide
If a user sets a 1-1 bidir field to null, and then to a different value, these are passed into RelationshipManagerImpl. What currently happens is only the first change is registered, and when it processes it, the old value is already deleted, so it drops to a line that nulls the field in the owner object. Makes no sense to do that.

Andy Jefferson added a comment - 15/May/12 09:09 PM
SVN trunk removes this nulling

Andy Jefferson made changes - 15/May/12 09:09 PM
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Assignee Andy Jefferson [ andy ]
Resolution Fixed [ 1 ]
Andy Jefferson made changes - 18/Jun/12 10:05 AM
Status Resolved [ 5 ] Closed [ 6 ]
Andy Jefferson made changes - 04/Oct/12 05:02 PM
Component/s JDO [ 10201 ]