Application not getting started after adding Optimistic lock to a class

Solution Verified - Updated -

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
    @Version to every entity one by one. Finally, we find hit the problem again when we add the @Version to a specific DAO. 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.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.