I’‘m using hbm2java to create entity classes from several oracle views which worked fine up to 7.1.6.Final - since then it breaks with message: ‘Cannot invoke “java.sql.PreparedStatement.close()” because “ps” is null’.
The reason seems to be the OracleMetaDataDialect that handles some prepared statements. Those statements are filled in several steps and closed in the method public ‘void close() {…}’ as the complete bunch of statement calling ‘private PreparedStatement close(PreparedStatement ps) {…}’ for every single prepared statement. The latter one assumes since 5th of November 2025 that all prepared statements are not null.
Unfortunately the statements prefixed ‘prepIndex‘ are filled only in case tables are converted (see TableCollector method ‘private void addTable(…) {…}’, especially lines 128ff. - the call to processIndices is done in case table type is a “TABLE” only).
Is it a bug up to now unrecognized (limited to create entities from Views using Oracle) or did I miss a certain magic to create immutable entities from views? Where I can find an example?
Thanks a lot