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
Operations

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
INSERT of A
INSERT of B
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