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)

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

Andy Jefferson made changes - 28/Mar/12 11:33 AM
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Assignee Andy Jefferson [ andy ]
Fix Version/s 3.0.10 [ 11501 ]
Resolution Fixed [ 1 ]
Andy Jefferson made changes - 30/Mar/12 09:25 AM
Status Resolved [ 5 ] Closed [ 6 ]