[hibernate-dev] OracleTypesHelper doing reflection based initialization

Sanne Grinovero sanne at hibernate.org
Wed Aug 1 07:19:08 EDT 2018


This class seems to have a single purpose, which is to extract a
constant from the Oracle JDBC driver:
 - https://github.com/hibernate/hibernate-orm/blob/bd256e4783219f4a765219cf625bb658fcb5fde1/hibernate-core/src/main/java/org/hibernate/dialect/OracleTypesHelper.java#L20

Would it be possible to just have a human read what number it is and
hard code it in the sources?

I guess we could add an integration test to verify that this still is
the right number when drivers are updated.

Is there more to it?

This is what I have in mind:
 - https://github.com/hibernate/hibernate-orm/commit/b9f8e4a7bb2dbec864e0ed5702b2f9b15182892b

Thanks,
Sanne


More information about the hibernate-dev mailing list