I'm hitting 'org.hibernate.PropertyValueException: not-null property references a null or transient value'

Solution Verified - Updated -

Issue

  • Depending how the first level  cache is filled, the application raises

    javax.persistence.PersistenceException:  org.hibernate.PropertyValueException: not-null property references a  null or transient value:
    

Environment

  • Enterprise Application  Platform 4.3.0 CP03 (EAP)
  • Hibernate Enterprise Application  Platform 4.3.0 CP03 (EAP)
  • Java Persistence API (JPA) shipped  with Enterprise Application Platform 4.3.0 CP03 (EAP)
  • associating  a new instance of an Entity

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.