@@ -452,7 +452,7 @@ private Set<String> handleIdClass(
452452 ElementsToProcess elementsToProcess ,
453453 Map <ClassDetails , InheritanceState > inheritanceStates ) {
454454 final Set <String > idPropertiesIfIdClass = new HashSet <>();
455- boolean isIdClass = mapAsIdClass (
455+ final boolean isIdClass = mapAsIdClass (
456456 inheritanceStates ,
457457 inheritanceState ,
458458 persistentClass ,
@@ -493,9 +493,9 @@ private boolean mapAsIdClass(
493493 final PropertyData baseInferredData = new PropertyPreloadedData ( accessType , "id" , classWithIdType );
494494 final AccessType propertyAccessor = getPropertyAccessor ( compositeClass );
495495
496- // In JPA 2, there is a shortcut if the IdClass is the Pk of the associated class pointed to by the id
496+ // In JPA 2, there is a shortcut if the IdClass is the PK of the associated class pointed to by the id
497497 // it ought to be treated as an embedded and not a real IdClass (at least in Hibernate's internal way)
498- final boolean isFakeIdClass = isIdClassPkOfTheAssociatedEntity (
498+ final boolean isFakeIdClass = isIdClassPrimaryKeyOfAssociatedEntity (
499499 elementsToProcess ,
500500 compositeClass ,
501501 inferredData ,
@@ -657,7 +657,7 @@ private static PropertyData getUniqueIdPropertyFromBaseClass(
657657 return baseClassElements .get ( 0 );
658658 }
659659
660- private static boolean isIdClassPkOfTheAssociatedEntity (
660+ private static boolean isIdClassPrimaryKeyOfAssociatedEntity (
661661 ElementsToProcess elementsToProcess ,
662662 ClassDetails compositeClass ,
663663 PropertyData inferredData ,
@@ -672,7 +672,8 @@ private static boolean isIdClassPkOfTheAssociatedEntity(
672672 propertyAccessor ,
673673 context
674674 );
675- final InheritanceState state = inheritanceStates .get ( idPropertyOnBaseClass .getClassOrElementType ().determineRawClass () );
675+ final InheritanceState state =
676+ inheritanceStates .get ( idPropertyOnBaseClass .getClassOrElementType ().determineRawClass () );
676677 if ( state == null ) {
677678 return false ; //while it is likely a user error, let's consider it is something that might happen
678679 }
0 commit comments