Caused by: org.hibernate.AnnotationException: An entity annotated with @Inheritance cannot use @AttributeOverride
Issue
-
We are using Inheritance strategy
TABLE_PER_CLASS
and@AttributeOverride
. It was working inHibernate 4 (EAP 6.4)
but not inHibernate 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.