Uploaded image for project: 'Hibernate ORM'
  1. HHH-9388

Create more flexible way to generate table and column names

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.3.7, 4.2.16
    • Component/s: hibernate-core
    • Labels:
      None
    • Last commented by a user?:
      true
    • Sprint:

      Description

      NamingStategy will be deprecated by HHH-7079 Closed 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.

        Attachments

          Issue links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - Not Specified
                  Not Specified
                  Logged:
                  Time Spent - 7.25h
                  7.25h