We are using Hibernate, and for configuration we have Java code that calls Hibernate’s
Configuration.addAnnotatedClass for each entity class.
I’m trying to figure out the best way to automatically generate schema changes whenever those entities’ definitions have changed.
Since we’re using this Java configuration instead of
hibernate.cfg.xml, I was hoping there is some other way to specify the Hibernate configuration.
In the wiki, it mentions https://github.com/liquibase/liquibase-hibernate/wiki
The hibernate classic URL allows you to either reference your hibernate config XML file or specify a class name that implements liquibase/ext/hibernate/customfactory/CustomClassicConfigurationFactory
However, it looks like that was deleted: https://github.com/liquibase/liquibase-hibernate/commit/4926f5208c44b4e71912a397ecd629ee594e4a7d
Is there any replacement, or code that can accept an
org.hibernate.SessionFactory or similar?