The NamingStrategy
was already being marked as deprecated in Hibernate 4.2/4.3 (HHH-7079). Starting with Hibernate 5, now it will shipped with two replacements(?) interfaces ImplictNamingStrategy
and PhysicalNamingStrategy
(HHH-7078) and have finally ditched support for the old NamingStrategy
. That's why Spring's upcoming Hibernate5 supported has even removed the configurer namingStrategy()
and favor of implicitNamingStrategy()
and physicalNamingStrategy()
. So far, so good.
Although it is mentioned in some documents (i.e. in the incomplete working-5.0-migration-guide.md) and in (generated) release notes for the upcoming Hibernate 5 (as of today), I've found no concrete example how to use these actually.
Perhaps I've missed something, but neither the JavaDoc nor the issues shows any evidence of the idea both strategy types. Furthermore I've already one strategy based on NamingStrategy
: a custom OracleNamingStrategy
which is based on the well-known one.
While I'm interested in a proper solution in code (obviously), the actual issue is getting a working migration document and/or the conceptual idea of the restructured naming strategy.
Also related: