HHH-14925 Using JavaTypeRegistry#findDescriptor()
This commit is contained in:
parent
8a96c4e7c7
commit
f967e16fee
|
@ -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 ) {
|
||||
|
|
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in New Issue