Issue Details (XML | Word | Printable)

Key: OPENJPA-275
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Patrick Linskey
Reporter: Patrick Linskey
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
OpenJPA

Bulk updates: version information should be automatically maintained when the query does not

Created: 01/Jul/07 08:29 PM   Updated: 06/Jul/07 02:50 PM
Return to search
Component/s: jdbc, query
Affects Version/s: 0.9.0, 0.9.6, 0.9.7
Fix Version/s: 1.0.0

Time Tracking:
Not Specified

Resolution Date: 06/Jul/07 02:50 PM


 Description  « Hide
According to the JPA specification, the user must manually maintain the @Version column in objects that are updated via a bulk update. This is a potential bug in the waiting, and is impossible to do correctly for time-based version fields.

OpenJPA should automatically increment version counters when a bulk update is issued that does not maintain version counters itself.

Of course, this will not change the fact that bulk updates do not do any optimistic lock checks; that behavior is inherent to the nature of bulk updates in the JPA specification, since they are evaluated entirely against the database.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
No work has yet been logged on this issue.