HHH-14605 add BLOB, CLOB and NCLOB to JdbcTypeDescriptor's type category method
This commit is contained in:
parent
c349551fc3
commit
92c70ecb08
|
@ -60,7 +60,6 @@ public interface JdbcTypeDescriptor extends Serializable {
|
||||||
*/
|
*/
|
||||||
boolean canBeRemapped();
|
boolean canBeRemapped();
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
|
||||||
default <T> BasicJavaDescriptor<T> getJdbcRecommendedJavaTypeMapping(TypeConfiguration typeConfiguration) {
|
default <T> BasicJavaDescriptor<T> getJdbcRecommendedJavaTypeMapping(TypeConfiguration typeConfiguration) {
|
||||||
// match legacy behavior
|
// match legacy behavior
|
||||||
return (BasicJavaDescriptor<T>) typeConfiguration.getJavaTypeDescriptorRegistry().getDescriptor(
|
return (BasicJavaDescriptor<T>) typeConfiguration.getJavaTypeDescriptorRegistry().getDescriptor(
|
||||||
|
@ -129,6 +128,7 @@ public interface JdbcTypeDescriptor extends Serializable {
|
||||||
case Types.BINARY:
|
case Types.BINARY:
|
||||||
case Types.VARBINARY:
|
case Types.VARBINARY:
|
||||||
case Types.LONGVARBINARY:
|
case Types.LONGVARBINARY:
|
||||||
|
case Types.BLOB:
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
@ -142,6 +142,8 @@ public interface JdbcTypeDescriptor extends Serializable {
|
||||||
case Types.NVARCHAR:
|
case Types.NVARCHAR:
|
||||||
case Types.LONGVARCHAR:
|
case Types.LONGVARCHAR:
|
||||||
case Types.LONGNVARCHAR:
|
case Types.LONGNVARCHAR:
|
||||||
|
case Types.CLOB:
|
||||||
|
case Types.NCLOB:
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue