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-822
Type: Improvement Improvement
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

Change SCO backing store for Set to not do clear/addAll on an update to a collection

Created: 19/Mar/12 03:48 PM   Updated: 30/Mar/12 09:25 AM   Resolved: 19/Mar/12 07:15 PM
Component/s: Java Types, Persistence
Affects Version/s: None
Fix Version/s: 3.0.10, 3.1.0.m2

 Description  « Hide
When a user has a Collection field and calls

this currently creates the SCO (with backing store) and then does a

This is firstly inefficient, and secondly can result in objects being deleted unecessarily when we have dependent elements.

Sort Order: Ascending order - Click to sort in descending order
Andy Jefferson added a comment - 19/Mar/12 07:15 PM
SVN trunk and branches/3.0 fix this, doing individual add/remove for the affected elements