Application not getting started after adding Optimistic lock to a class
Issue
- We tried to add optimistic lock to every entity of our project. After adding the feature to our project, we cannot start up the application. We revert the changes and do it again by adding
@Versionto every entity one by one. Finally, we find hit the problem again when we add the@Versionto a specificDAO. However, we find nothing special of that class.
Environment
- JBoss Enterprise Application Platform
- 7.1.0
- Hibernate
- Java Persistence API
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
