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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content