To use optimistic locking does Hibernate 4.x require a “version” column be added for each table?

Solution Verified - Updated -

Issue

With regard to JPA optimistic locking, does Hibernate require a “version” column be added for each table or will Hibernate do this implicitly in separate artifacts?

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP) 6.x
  • Hibernate 4.x

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