Skip to content

Commit e97e257

Browse files
committed
HHH-18363 Fix for Informix component nullness check error
1 parent 180960a commit e97e257

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/InformixDialect.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@
6767
import org.hibernate.tool.schema.extract.spi.SequenceInformationExtractor;
6868
import org.hibernate.tool.schema.internal.StandardForeignKeyExporter;
6969
import org.hibernate.tool.schema.spi.Exporter;
70+
import org.hibernate.type.JavaObjectType;
7071
import org.hibernate.type.descriptor.jdbc.ClobJdbcType;
72+
import org.hibernate.type.descriptor.jdbc.ObjectNullAsBinaryTypeJdbcType;
7173
import org.hibernate.type.descriptor.jdbc.spi.JdbcTypeRegistry;
7274
import org.hibernate.type.descriptor.sql.DdlType;
7375
import org.hibernate.type.descriptor.sql.internal.CapacityDependentDdlType;
@@ -747,5 +749,16 @@ public void contributeTypes(TypeContributions typeContributions, ServiceRegistry
747749
super.contributeTypes( typeContributions, serviceRegistry );
748750
final JdbcTypeRegistry jdbcTypeRegistry = typeContributions.getTypeConfiguration().getJdbcTypeRegistry();
749751
jdbcTypeRegistry.addDescriptor( Types.NCLOB, ClobJdbcType.DEFAULT );
752+
typeContributions.contributeJdbcType( ObjectNullAsBinaryTypeJdbcType.INSTANCE );
753+
754+
// Until we remove StandardBasicTypes, we have to keep this
755+
typeContributions.contributeType(
756+
new JavaObjectType(
757+
ObjectNullAsBinaryTypeJdbcType.INSTANCE,
758+
typeContributions.getTypeConfiguration()
759+
.getJavaTypeRegistry()
760+
.getDescriptor( Object.class )
761+
)
762+
);
750763
}
751764
}

0 commit comments

Comments
 (0)