Flush « Version « JPA Q&A





1. Merge and get the to-be-updated version without flush?    stackoverflow.com

Is it possible to change a versioned entity instance, and get the to-be-incremented-version without using flush ? Because from what i read, im afraid flush is not a good practice because ...

2. Can I disable version checking when flushing a session?    forum.hibernate.org

I have a question about StaleStateException and optimistic locking that I can't seem to find answered in the documentation. I want to know if there is a way to declare a class with a version attribute, so that it will throw a StaleStateException if the version check doesn't match, but retain the ability to ignore the version check when appropriate and ...

3. @Version and Collection was not processed by flush    forum.hibernate.org

Hello guys, In our system here, which has several entities and relationships, everything was running fine (unit tests, etc.). We are using the following hibernate versions: Hibernate Core 3.2.0.cr4 Hibernate Annotations 3.2.0.cr2 Hibernate EntityManager 3.2.0.cr2 We are used annotations for everything, including validation. We then tried to use Hibernate @Version annotation to control concurrency. Everything was working fine, and right after ...