I am migrating an application that works with Hibernate 3 to Hibernate 5.
I have a strange error:
ERROR: hibernate_sequence relationship does not exist
We use the *.hbm.xml mapping files and everything works fine until I change the version of Hibernate. I mean, we have a pretty direct comparison with the column id and the database sequence generator, and still Hibernate was unable to select the correct configuration.
<hibernate-mapping> <class name="com.boyan.MyClass" table="my_class"> <id name="id" type="long"> <column name="id" /> <generator class="sequence"> <param name="sequence">my_class_seq</param> </generator> </id> ... </class> </hibernate-mapping>
Boyan source share