NamingStategy will be deprecated by HHH-7079 and the following interfaces will be added to org.hibernate.cfg.naming: * NamingStrategyDelegator * NamingStrategyDelegate
NamingStrategyDelegator.getNamingStrategyDelegate( true ) will return a NamingStrategyDelegate for Hibernate-specific mappings (hbm.xml).
NamingStrategyDelegator.getNamingStrategyDelegate( false ) will return a NamingStrategyDelegate for annotations and orm.xml mappings.
Two NamingStrategyDelegator implementations will be provided by Hibernate: * ImprovedNamingStrategyDelegator (intended to fix bugs in table/column name generation that do comply with JPA spec); * LegacyNamingStrategyDelegator (simply delegates to a NamingStrategy); this is also deprecated.
To avoid making a change that will break applications that rely on the incorrectly generated table/column names, LegacyNamingStrategyDelegator will be the default.
Applications will be able to enable ImprovedNamingStrategyDelegator to fix the bugs.
|