Hibernate @Id value is not generated when @PrePersist is triggered

Solution Verified - Updated -

Issue

  • In Enterprise Application Platform 4.3, when the @PrePersist callback method was triggered, the @Id field of a new entity was populated. This is not the case with Enterprise Application Platform 5.0, is this a bug?

Environment

  • Enterprise Application Platform (EAP)
    • 5.0

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.