HHH-17803 Fix resolving enum basic path source mapping expressibles

This commit is contained in:
Marco Belladelli 2024-03-05 10:59:58 +01:00
parent dc18d92702
commit a79ebfec97

View File

@ -774,12 +774,12 @@ public MappingModelExpressible<?> resolveMappingExpressible(
return (BasicType<?>) sqmExpressible;
}
if ( sqmExpressible instanceof BasicDomainType ) {
if ( sqmExpressible instanceof BasicDomainType<?> ) {
return getTypeConfiguration().getBasicTypeForJavaType( sqmExpressible.getRelationalJavaType().getJavaType() );
}
if ( sqmExpressible instanceof BasicSqmPathSource<?> ) {
return getTypeConfiguration().getBasicTypeForJavaType( sqmExpressible.getRelationalJavaType().getJavaType() );
return resolveMappingExpressible( sqmExpressible.getSqmType(), tableGroupLocator );
}
if ( sqmExpressible instanceof SqmFieldLiteral ) {