Skip to content

Commit c04b014

Browse files
VladoKurucbeikov
authored andcommitted
HHH-18363 Fix for Informix component nullness check error
1 parent c6f6be6 commit c04b014

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
@@ -71,7 +71,9 @@
7171
import org.hibernate.tool.schema.extract.spi.SequenceInformationExtractor;
7272
import org.hibernate.tool.schema.internal.StandardForeignKeyExporter;
7373
import org.hibernate.tool.schema.spi.Exporter;
74+
import org.hibernate.type.JavaObjectType;
7475
import org.hibernate.type.descriptor.jdbc.ClobJdbcType;
76+
import org.hibernate.type.descriptor.jdbc.ObjectNullAsBinaryTypeJdbcType;
7577
import org.hibernate.type.descriptor.jdbc.spi.JdbcTypeRegistry;
7678
import org.hibernate.type.descriptor.sql.DdlType;
7779
import org.hibernate.type.descriptor.sql.internal.CapacityDependentDdlType;
@@ -820,6 +822,17 @@ public void contributeTypes(TypeContributions typeContributions, ServiceRegistry
820822
final JdbcTypeRegistry jdbcTypeRegistry = typeContributions.getTypeConfiguration().getJdbcTypeRegistry();
821823
jdbcTypeRegistry.addDescriptor( Types.NCLOB, ClobJdbcType.DEFAULT );
822824
typeContributions.contributeJdbcType( VarcharUUIDJdbcType.INSTANCE );
825+
typeContributions.contributeJdbcType( ObjectNullAsBinaryTypeJdbcType.INSTANCE );
826+
827+
// Until we remove StandardBasicTypes, we have to keep this
828+
typeContributions.contributeType(
829+
new JavaObjectType(
830+
ObjectNullAsBinaryTypeJdbcType.INSTANCE,
831+
typeContributions.getTypeConfiguration()
832+
.getJavaTypeRegistry()
833+
.getDescriptor( Object.class )
834+
)
835+
);
823836
}
824837

825838
@Override

0 commit comments

Comments
 (0)