We have a project using a dialect with PersistentTableBulkIdStrategy and containing an entity hierarchy with InheritanceType ‘Joined’, so a column ‘hib_sess_id’ will be created in PersistentTableBulkIdStrategy.augmentIdTableDefinition(…).
As one can see for this column only the sqlType is set, but not the value attribute.
With ticket the row
final int sqlTypeCode = column.getSqlTypeCode( metadata );
was inserted in class AbstractMultiTableBulkIdStrategyImpl. which leads to a NullPointerException because inside that method getValue().getType() is called in line 198 but the value is null for column ‘hib_sess_id’.
I looked at the dialects hibernate provides, and I thing this affects the following ones having PersistentTableBulkIdStrategy:
CUBRIDDialect
InterbaseDialect
FirebirdDialect
FrontbaseDialect
JDataStoreDialect
McKoiDialect
MimerSQLDialect
PointbaseDialect
ProgressDialect
RDMSOS2200Dialect
The error already occures on instantiation of the EntityManagerFactory (SessionFactoryImpl)
I am the original community contributor to fix https://github.com/hibernate/hibernate-orm/pull/3498/files. Thanks for the bug reporting. I will take a look at it soon.
PR created at: