Hibernate Version column increased unexpectedly

Solution Unverified - Updated -

Issue

  • executing the following sequence lead unexpectedly to an increased version column
    1. load the entity by primary key
    2. modify a field on the entity
    3. load the entity again using a Query

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7.1
    • Hibernate 5.1

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.