File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
hibernate-core/src/main/java/org/hibernate/type/descriptor/jdbc/spi Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 9
9
import java .io .Serializable ;
10
10
import java .sql .Types ;
11
11
import java .util .Locale ;
12
+ import java .util .Map ;
12
13
import java .util .Objects ;
13
14
import java .util .concurrent .ConcurrentHashMap ;
14
15
@@ -271,7 +272,17 @@ private JdbcType resolveTypeConstructorDescriptor(
271
272
public boolean hasRegisteredDescriptor (int jdbcTypeCode ) {
272
273
return descriptorMap .containsKey ( jdbcTypeCode )
273
274
|| JdbcTypeNameMapper .isStandardTypeCode ( jdbcTypeCode )
274
- || JdbcTypeFamilyInformation .INSTANCE .locateJdbcTypeFamilyByTypeCode ( jdbcTypeCode ) != null ;
275
+ || JdbcTypeFamilyInformation .INSTANCE .locateJdbcTypeFamilyByTypeCode ( jdbcTypeCode ) != null
276
+ || locateConstructedJdbcType ( jdbcTypeCode );
277
+ }
278
+
279
+ private boolean locateConstructedJdbcType (int jdbcTypeCode ) {
280
+ for ( TypeConstructedJdbcTypeKey key : typeConstructorDescriptorMap .keySet () ) {
281
+ if ( key .typeCode == jdbcTypeCode ) {
282
+ return true ;
283
+ }
284
+ }
285
+ return false ;
275
286
}
276
287
277
288
public JdbcTypeConstructor getConstructor (int jdbcTypeCode ) {
You can’t perform that action at this time.
0 commit comments