Hibernate 4 to 5 Upgrade Issues - FK naming changed. H5 -> FK+{hash} while H4 -> FK_+{different_hash}. H5 is not recognizing any H4 FK's and re-creating all - which will not work in Production due to Table sizes. Any points on how to keep H4 FK Naming Strategy in H5? Here's my new config in H5 that kept the Table/Column names from H4:
hibernate:
naming:
implicit-strategy: org.hibernate.boot.model.naming.ImplicitNamingStrategyLegacyJpaImpl
physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
ddlAuto: update
You can use ImprovedNamingStrategy for Hibernate 5 with Hibernate 5, If you want to keep Hibernate 4 constraint names.
Please, also read about limitations of this approach https://github.com/v-ladynev/fluent-hibernate#limitations-of-improvednamingstrategy-for-hibernate-5