3232
3333import static org .hibernate .boot .model .internal .ClassPropertyHolder .addPropertyToMappedSuperclass ;
3434import static org .hibernate .boot .model .internal .ClassPropertyHolder .handleGenericComponentProperty ;
35- import static org .hibernate .boot .model .internal .HCANNHelper .hasAnnotation ;
36- import static org .hibernate .internal .util .NullnessUtil .castNonNull ;
3735import static org .hibernate .internal .util .StringHelper .isEmpty ;
3836import static org .hibernate .internal .util .StringHelper .qualifyConditionally ;
3937import static org .hibernate .spi .NavigablePath .IDENTIFIER_MAPPER_PROPERTY ;
@@ -70,7 +68,7 @@ public class ComponentPropertyHolder extends AbstractPropertyHolder {
7068 private final Component component ;
7169 private final boolean isOrWithinEmbeddedId ;
7270 private final boolean isWithinElementCollection ;
73- private final Map <XClass , InheritanceState > inheritanceStatePerClass ;
71+ private final Map <ClassDetails , InheritanceState > inheritanceStatePerClass ;
7472
7573 private final String embeddedAttributeName ;
7674 private final Map <String ,AttributeConversionInfo > attributeConversionInfoMap ;
@@ -81,7 +79,7 @@ public ComponentPropertyHolder(
8179 PropertyData inferredData ,
8280 PropertyHolder parent ,
8381 MetadataBuildingContext context ,
84- Map <XClass , InheritanceState > inheritanceStatePerClass ) {
82+ Map <ClassDetails , InheritanceState > inheritanceStatePerClass ) {
8583 super ( path , parent , inferredData .getPropertyType ().determineRawClass (), context );
8684 final MemberDetails embeddedMemberDetails = inferredData .getAttributeMember ();
8785 setCurrentProperty ( embeddedMemberDetails );
@@ -292,11 +290,11 @@ public Table getTable() {
292290
293291 @ Override
294292 public void addProperty (Property prop , MemberDetails attributeMemberDetails , ClassDetails declaringClass ) {
295- handleGenericComponentProperty ( prop , getContext () );
293+ handleGenericComponentProperty ( prop , attributeMemberDetails , getContext () );
296294 if ( declaringClass != null ) {
297295 final InheritanceState inheritanceState = inheritanceStatePerClass .get ( declaringClass );
298296 if ( inheritanceState != null && inheritanceState .isEmbeddableSuperclass () ) {
299- addPropertyToMappedSuperclass ( prop , declaringClass , getContext () );
297+ addPropertyToMappedSuperclass ( prop , attributeMemberDetails , declaringClass , getContext () );
300298 }
301299 }
302300 component .addProperty ( prop , declaringClass );
0 commit comments