As written in the original post
Quote:
I've checked the legacy hbm naming strategy, but that strategy produces different naming for foreign keys.
I checked the code:
ImplicitNamingStrategyLegacyHbmImpl extends ImplicitNamingStrategyJpaCompliantImpl but *does not* override the determineForeignKeyName method
which is used afaiu to compute foreign key constraint names and, as such, is backward incompatible.
https://github.com/hibernate/hibernate- ... .java#L200https://github.com/hibernate/hibernate- ... mImpl.java