HHH-18662 Attribute not mentioned in orm.xml ends up not being mapped in Hibernate ORM 7
This commit is contained in:
parent
1327f002cd
commit
1adfaf30a5
|
@ -133,7 +133,6 @@ public class ManagedTypeProcessor {
|
||||||
classDetails.forEachPersistableMember( memberDetails -> {
|
classDetails.forEachPersistableMember( memberDetails -> {
|
||||||
final MutableMemberDetails mutableMemberDetails = (MutableMemberDetails) memberDetails;
|
final MutableMemberDetails mutableMemberDetails = (MutableMemberDetails) memberDetails;
|
||||||
mutableMemberDetails.clearAnnotationUsages();
|
mutableMemberDetails.clearAnnotationUsages();
|
||||||
mutableMemberDetails.addAnnotationUsage( JpaAnnotations.TRANSIENT.createUsage( xmlDocumentContext.getModelBuildingContext() ) );
|
|
||||||
} );
|
} );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -720,7 +719,6 @@ public class ManagedTypeProcessor {
|
||||||
MutableMemberDetails memberDetails,
|
MutableMemberDetails memberDetails,
|
||||||
JaxbPersistentAttribute jaxbAttribute,
|
JaxbPersistentAttribute jaxbAttribute,
|
||||||
XmlDocumentContext xmlDocumentContext) {
|
XmlDocumentContext xmlDocumentContext) {
|
||||||
memberDetails.removeAnnotationUsage( JpaAnnotations.TRANSIENT );
|
|
||||||
CommonAttributeProcessing.applyAttributeAccessor(
|
CommonAttributeProcessing.applyAttributeAccessor(
|
||||||
jaxbAttribute,
|
jaxbAttribute,
|
||||||
memberDetails,
|
memberDetails,
|
||||||
|
|
Loading…
Reference in New Issue