Hibernate sequence generator confused by sharing it for multiple entities

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.

Environment

None

Status

Assignee

Unassigned

Reporter

Martin Grajcar

Fix versions

None

Labels

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure