HHH-14605 add BLOB, CLOB and NCLOB to JdbcTypeDescriptor's type category method

This commit is contained in:
nathan.xu 2021-05-14 17:19:01 -04:00 committed by Christian Beikov
parent c349551fc3
commit 92c70ecb08
1 changed files with 3 additions and 1 deletions

View File

@ -60,7 +60,6 @@ public interface JdbcTypeDescriptor extends Serializable {
*/
boolean canBeRemapped();
@SuppressWarnings("unchecked")
default <T> BasicJavaDescriptor<T> getJdbcRecommendedJavaTypeMapping(TypeConfiguration typeConfiguration) {
// match legacy behavior
return (BasicJavaDescriptor<T>) typeConfiguration.getJavaTypeDescriptorRegistry().getDescriptor(
@ -129,6 +128,7 @@ public interface JdbcTypeDescriptor extends Serializable {
case Types.BINARY:
case Types.VARBINARY:
case Types.LONGVARBINARY:
case Types.BLOB:
return true;
}
return false;
@ -142,6 +142,8 @@ public interface JdbcTypeDescriptor extends Serializable {
case Types.NVARCHAR:
case Types.LONGVARCHAR:
case Types.LONGNVARCHAR:
case Types.CLOB:
case Types.NCLOB:
return true;
}
return false;