HHH-14827 Fix @AttributeOverride at type level being ignored when also using orm.xml

This commit is contained in:
Yoann Rodière 2021-09-16 10:50:56 +02:00
parent 170821c135
commit 70d7ac6ecd
1 changed files with 4 additions and 3 deletions

View File

@ -1880,9 +1880,10 @@ public class JPAXMLOverriddenAnnotationReader implements AnnotationReader {
}
private AttributeOverrides getAttributeOverrides(ManagedType root, XMLContext.Default defaults) {
return root instanceof JaxbEntity
? getAttributeOverrides( ( (JaxbEntity) root ).getAttributeOverride(), defaults, true )
: null;
return getAttributeOverrides(
root instanceof JaxbEntity ? ( (JaxbEntity) root ).getAttributeOverride() : Collections.emptyList(),
defaults, true
);
}
/**