HHH-18357 Account for mapped-superclasses without ids
This commit is contained in:
parent
f4297a0020
commit
e2997bdc74
|
@ -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 ) {
|
||||||
|
|
Loading…
Reference in New Issue