HHH-17279 EntityType#findSubPathSource fix
This commit is contained in:
parent
9f7a321c39
commit
e6f26e0754
|
@ -154,9 +154,7 @@ public class EntityTypeImpl<J>
|
|||
}
|
||||
|
||||
if ( EntityIdentifierMapping.matchesRoleName( name ) ) {
|
||||
if ( hasIdClass() ) {
|
||||
return getIdentifierDescriptor();
|
||||
}
|
||||
return hasSingleIdAttribute() ? findIdAttribute() : getIdentifierDescriptor();
|
||||
}
|
||||
|
||||
if ( EntityDiscriminatorMapping.matchesRoleName( name ) ) {
|
||||
|
@ -179,7 +177,7 @@ public class EntityTypeImpl<J>
|
|||
}
|
||||
|
||||
if ( EntityIdentifierMapping.matchesRoleName( name ) ) {
|
||||
return hasIdClass() ? getIdentifierDescriptor() : findIdAttribute();
|
||||
return hasSingleIdAttribute() ? findIdAttribute() : getIdentifierDescriptor();
|
||||
}
|
||||
|
||||
if ( EntityDiscriminatorMapping.matchesRoleName( name ) ) {
|
||||
|
|
Loading…
Reference in New Issue