From 92c70ecb088d33c0934284321d2803ab1ac46d4a Mon Sep 17 00:00:00 2001 From: "nathan.xu" Date: Fri, 14 May 2021 17:19:01 -0400 Subject: [PATCH] HHH-14605 add BLOB, CLOB and NCLOB to JdbcTypeDescriptor's type category method --- .../hibernate/type/descriptor/jdbc/JdbcTypeDescriptor.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hibernate-core/src/main/java/org/hibernate/type/descriptor/jdbc/JdbcTypeDescriptor.java b/hibernate-core/src/main/java/org/hibernate/type/descriptor/jdbc/JdbcTypeDescriptor.java index c50d6c846a..8ce7f78592 100644 --- a/hibernate-core/src/main/java/org/hibernate/type/descriptor/jdbc/JdbcTypeDescriptor.java +++ b/hibernate-core/src/main/java/org/hibernate/type/descriptor/jdbc/JdbcTypeDescriptor.java @@ -60,7 +60,6 @@ public interface JdbcTypeDescriptor extends Serializable { */ boolean canBeRemapped(); - @SuppressWarnings("unchecked") default BasicJavaDescriptor getJdbcRecommendedJavaTypeMapping(TypeConfiguration typeConfiguration) { // match legacy behavior return (BasicJavaDescriptor) 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;