HHH-17701 Use relational java type when resolving mapping expressibles
This commit is contained in:
parent
d5d9f5766f
commit
8a8099c3fd
|
@ -775,12 +775,11 @@ public class MappingMetamodelImpl extends QueryParameterBindingTypeResolverImpl
|
|||
}
|
||||
|
||||
if ( sqmExpressible instanceof BasicDomainType ) {
|
||||
final BasicDomainType<?> domainType = (BasicDomainType<?>) sqmExpressible;
|
||||
return getTypeConfiguration().getBasicTypeForJavaType( domainType.getExpressibleJavaType().getJavaTypeClass() );
|
||||
return getTypeConfiguration().getBasicTypeForJavaType( sqmExpressible.getRelationalJavaType().getJavaType() );
|
||||
}
|
||||
|
||||
if ( sqmExpressible instanceof BasicSqmPathSource<?> ) {
|
||||
return getTypeConfiguration().getBasicTypeForJavaType(((BasicSqmPathSource<?>) sqmExpressible).getJavaType());
|
||||
return getTypeConfiguration().getBasicTypeForJavaType( sqmExpressible.getRelationalJavaType().getJavaType() );
|
||||
}
|
||||
|
||||
if ( sqmExpressible instanceof SqmFieldLiteral ) {
|
||||
|
|
Loading…
Reference in New Issue