From 1adfaf30a5bdb9cd175974427b1f78ac42cca5b6 Mon Sep 17 00:00:00 2001 From: Andrea Boriero Date: Mon, 23 Sep 2024 16:05:47 +0200 Subject: [PATCH] HHH-18662 Attribute not mentioned in orm.xml ends up not being mapped in Hibernate ORM 7 --- .../boot/models/xml/internal/ManagedTypeProcessor.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/boot/models/xml/internal/ManagedTypeProcessor.java b/hibernate-core/src/main/java/org/hibernate/boot/models/xml/internal/ManagedTypeProcessor.java index 865cf8e0c7..c32ca6f321 100644 --- a/hibernate-core/src/main/java/org/hibernate/boot/models/xml/internal/ManagedTypeProcessor.java +++ b/hibernate-core/src/main/java/org/hibernate/boot/models/xml/internal/ManagedTypeProcessor.java @@ -133,7 +133,6 @@ public class ManagedTypeProcessor { classDetails.forEachPersistableMember( memberDetails -> { final MutableMemberDetails mutableMemberDetails = (MutableMemberDetails) memberDetails; mutableMemberDetails.clearAnnotationUsages(); - mutableMemberDetails.addAnnotationUsage( JpaAnnotations.TRANSIENT.createUsage( xmlDocumentContext.getModelBuildingContext() ) ); } ); } @@ -720,7 +719,6 @@ public class ManagedTypeProcessor { MutableMemberDetails memberDetails, JaxbPersistentAttribute jaxbAttribute, XmlDocumentContext xmlDocumentContext) { - memberDetails.removeAnnotationUsage( JpaAnnotations.TRANSIENT ); CommonAttributeProcessing.applyAttributeAccessor( jaxbAttribute, memberDetails,