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

Hibernate sequence generator confused by sharing it for multiple entities

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 5.0.6
    • Fix Version/s: None
    • Component/s: hibernate-core
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

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

      Description

      Using @GeneratedValue(strategy=GenerationType.SEQUENCE) in a mapped superclass
      for MySql creates a helper table hibernate_sequence with one row per concrete entity.

      For a running example, s. https://github.com/Maaartinus/bug-demo.

      See also http://stackoverflow.com/a/34749596/581205.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              maaartinus Martin Grajcar
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: