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/q/34596464/581205. |