I’m doing upgrading Spring 4 to Spring 5 and Hibernate 4 to 5.
My existing functionality refused to work. It broke with the following exception.
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table ‘crm.hibernate_sequence’ doesn’t exist
I’m using MariaDB/MySQL. I don’t have to maintain any sequence tables as Oracle. In addition, it was working without any issues. All my primary keys are autogenerated with the following annotations.
@Id
@GeneratedValue
@Column(name=”ID”)
private Long id;
Thanks to https://stackoverflow.com/questions/32968527/hibernate-sequence-doesnt-exist
Adding hibernate.id.new_generator_mappings=false to Hibernate properties solved the problem.