File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
hibernate-core/src/main/java/org/hibernate/type/descriptor/jdbc/spi Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -295,7 +295,17 @@ private JdbcType jdbcElementType(
295
295
public boolean hasRegisteredDescriptor (int jdbcTypeCode ) {
296
296
return descriptorMap .containsKey ( jdbcTypeCode )
297
297
|| isStandardTypeCode ( jdbcTypeCode )
298
- || JdbcTypeFamilyInformation .INSTANCE .locateJdbcTypeFamilyByTypeCode ( jdbcTypeCode ) != null ;
298
+ || JdbcTypeFamilyInformation .INSTANCE .locateJdbcTypeFamilyByTypeCode ( jdbcTypeCode ) != null
299
+ || locateConstructedJdbcType ( jdbcTypeCode );
300
+ }
301
+
302
+ private boolean locateConstructedJdbcType (int jdbcTypeCode ) {
303
+ for ( TypeConstructedJdbcTypeKey key : typeConstructorDescriptorMap .keySet () ) {
304
+ if ( key .typeCode () == jdbcTypeCode ) {
305
+ return true ;
306
+ }
307
+ }
308
+ return false ;
299
309
}
300
310
301
311
public JdbcTypeConstructor getConstructor (int jdbcTypeCode ) {
You can’t perform that action at this time.
0 commit comments