Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Object duplication after detach/makePersistent #75
Using detach can result in objects being duplicated:
It is not clear what the JDO Spec saying about this. Clearly, it can be very confusing if object get duplicated. At least, the database is at least fundamentally consistent, because the new object gets a new OID. But is this the expected behaviour?
A test with the reference implementation (data nucleus 4.2 RDBMS/HSQL) shows very similar behaviour, except that now new ID is assigned, there a simply two objects with the same ID in the database.
This need probably to be raised with the JDO people.