HHH-18357 Account for mapped-superclasses without ids

This commit is contained in:
Marco Belladelli 2024-07-10 09:36:07 +02:00
parent f4297a0020
commit e2997bdc74
1 changed files with 1 additions and 1 deletions

View File

@ -402,7 +402,7 @@ public abstract class AbstractIdentifiableType<J>
private SqmPathSource<?> interpretIdDescriptor() { private SqmPathSource<?> interpretIdDescriptor() {
log.tracef( "Interpreting domain-model identifier descriptor" ); log.tracef( "Interpreting domain-model identifier descriptor" );
if ( getSuperType() != null ) { if ( getSuperType() != null && getSuperType().getIdentifierDescriptor() != null ) {
return getSuperType().getIdentifierDescriptor(); return getSuperType().getIdentifierDescriptor();
} }
else if ( id != null ) { else if ( id != null ) {