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, 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