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-828
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

Persist of object with 1-N uni ordered List results in insert of element then extra UPDATE of owner even though already set

Created: 28/Mar/12 10:14 AM   Updated: 30/Mar/12 09:25 AM   Resolved: 28/Mar/12 11:33 AM
Component/s: Persistence
Affects Version/s: 3.0.9, 3.1.0.m1
Fix Version/s: 3.0.10, 3.1.0.m2

 Description  « Hide
If we have A with List<B> and we create an A with a B, then call em.persist(a) this results in 3 SQL
UPDATE of B to set FK to A (even though it was set in B insert)

Sort Order: Ascending order - Click to sort in descending order
Andy Jefferson added a comment - 28/Mar/12 11:33 AM
SVN trunk and branches/3.0 now fix this. For the example we get just the 2 INSERTs