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

Change "native" ID generator for Oracle12cDialect to SequenceStyleGenerator

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.0.7
    • Component/s: hibernate-core
    • Labels:
      None
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

    • Last commented by a user?:
      true
    • Sprint:

      Description

      Currently, when Oracle12cDialect is used, an IDENTITY column is used for an entity ID when mapped with:
      1) <generator class="native"/> using hbm.xml;
      2) @GeneratedValue(GenerationType.AUTO) with hibernate.id.new_generator_mappings=false; (note that hibernate.id.new_generator_mappings=true is the default).

      After this is fixed, Oracle12cDialect will use a SequenceStyleGenerator in these cases, consistent with earlier versions of Oracle dialect versions.

        Attachments

          Activity

            People

            • Assignee:
              gbadner Gail Badner
              Reporter:
              gbadner Gail Badner
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: