PostgreSQLDialect.getSelectClauseNullString method has a TODO, is it being addressed?

As per the title, PostgreSQLDialect.getSelectClauseNullString method has a TODO ‘adapt this to handle named enum types!’. Without this functionality it is not possible to use PostgreSQL named enum types with subclasses using the TABLE_PER_CLASS inheritance model (because the generated union query tries to cast nulls to an ‘enum’ type which is not valid).
Is there a plan to resolve this?

Yes, see HHH-18780 Use column type information to generate union subclass null casts by beikov · Pull Request #9338 · hibernate/hibernate-orm · GitHub

1 Like