HHH-14925 Using JavaTypeRegistry#findDescriptor()

This commit is contained in:
Karel Maesen 2021-11-12 14:32:09 +01:00
parent 8a96c4e7c7
commit f967e16fee
2 changed files with 2 additions and 2 deletions

View File

@ -1467,7 +1467,7 @@ public class SqmCriteriaNodeBuilder implements NodeBuilder, SqmCreationContext,
basicType = getTypeConfiguration().getBasicTypeForJavaType( valueClass );
if ( basicType == null ) {
final JavaType<Object> javaType = getTypeConfiguration().getJavaTypeDescriptorRegistry()
.getDescriptor( valueClass );
.findDescriptor( valueClass );
if ( javaType != null ) {
final JdbcType recommendedJdbcType = javaType.getRecommendedJdbcType( getTypeConfiguration().getCurrentBaseSqlTypeIndicators() );
if ( recommendedJdbcType != null ) {

View File

@ -126,7 +126,7 @@ public abstract class AbstractJdbcParameter
return defaultForJavaType;
}
final JavaType<Object> javaType = typeConfiguration.getJavaTypeDescriptorRegistry().getDescriptor( valueClass );
final JavaType<Object> javaType = typeConfiguration.getJavaTypeDescriptorRegistry().findDescriptor( valueClass );
if ( javaType != null ) {
final JdbcType recommendedJdbcType = javaType.getRecommendedJdbcType( typeConfiguration.getCurrentBaseSqlTypeIndicators() );
if ( recommendedJdbcType != null ) {