July 2011
1 post
1 tag
JPA: Ensuring versioning of entities when using...
The persistence layer for our code at The Law Wizard makes use of optimistic locking to determine if an entity has changed during the period where a user has been working on it. This helps to ensure that the view the user sees is always consistent with what is in the database.
One problem I came across is how to update multiple versioned entities in a single query whilst ensuring the benefits of...