Caused by: org.hibernate.AnnotationException: An entity annotated with @Inheritance cannot use @AttributeOverride

Solution Verified - Updated -

Issue

  • We are using Inheritance strategy TABLE_PER_CLASS and @AttributeOverride . It was working in Hibernate 4 (EAP 6.4) but not in Hibernate 5 ( EAP 7.2)

  • Below error is shown.

 Caused by: org.hibernate.AnnotationException: An entity annotated with @Inheritance cannot use @AttributeOverride

Environment

  • Red Hat JBoss Enterprise Application server (EAP)
    • 7.2

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