Issue Details (XML | Word | Printable)

Key: CORE-3051
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.
JPOX Core (ARCHIVED)

jdoPreStore : performing a query returns objects overwriting any dirty fields (overwriting them with the datastore values)

Created: 31/Oct/06 10:28 AM   Updated: 18/Dec/06 03:34 PM   Resolved: 31/Oct/06 10:39 AM
Component/s: JDO
Affects Version/s: 1.1.3
Fix Version/s: 1.1.4, 1.2.0-beta-1


 Description  « Hide
When we have an object and we modify a field, before the UPDATE statement is issued it (correctly) calls jdoPreStore. In Our jdoPreStore we do a query to check for other objects of that type. The query just happens to return the same object, but it returns it with the dirty fields values replaced by the datastore values. This means that the fields are still marked as dirty in the object yet the changes are lost. The query should return the unique object, and only use the datastore values when those fields are not loaded (i.e preserve any dirty fields)

Sort Order: Ascending order - Click to sort in descending order
Andy Jefferson added a comment - 31/Oct/06 10:39 AM
Fixed in CVS