HHH-14827 Fix @AttributeOverride at type level being ignored when also using orm.xml
This commit is contained in:
parent
1582d8acc0
commit
fba81d165a
|
@ -1880,9 +1880,10 @@ public class JPAXMLOverriddenAnnotationReader implements AnnotationReader {
|
||||||
}
|
}
|
||||||
|
|
||||||
private AttributeOverrides getAttributeOverrides(ManagedType root, XMLContext.Default defaults) {
|
private AttributeOverrides getAttributeOverrides(ManagedType root, XMLContext.Default defaults) {
|
||||||
return root instanceof JaxbEntity
|
return getAttributeOverrides(
|
||||||
? getAttributeOverrides( ( (JaxbEntity) root ).getAttributeOverride(), defaults, true )
|
root instanceof JaxbEntity ? ( (JaxbEntity) root ).getAttributeOverride() : Collections.emptyList(),
|
||||||
: null;
|
defaults, true
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue