"HHH000243: Setters of lazy classes cannot be final" in Hibernate

Solution Verified - Updated -

Issue

  • During deployment of a Hibernate application, errors logged flagging cases where property setter methods are marked final if field access is used.

    ... HHH000243: Setters of lazy classes cannot be final: <PACKAGE>.<CLASS>.<PROPERTY>
    
  • This was not seen in previous releases.

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP) 7.2
  • Hibernate 5.3

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