Skip to content

Commit 492fabd

Browse files
committed
HHH-18357 Account for mapped-superclasses without ids
1 parent 28c108c commit 492fabd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hibernate-core/src/main/java/org/hibernate/metamodel/model/domain/AbstractIdentifiableType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ public void finishUp() {
402402
private SqmPathSource<?> interpretIdDescriptor() {
403403
log.tracef( "Interpreting domain-model identifier descriptor" );
404404

405-
if ( getSuperType() != null ) {
405+
if ( getSuperType() != null && getSuperType().getIdentifierDescriptor() != null ) {
406406
return getSuperType().getIdentifierDescriptor();
407407
}
408408
else if ( id != null ) {

0 commit comments

Comments
 (0)