Spring-boot: Hibernate 5 custom naming strategy generates inconsistent table name for @ManyToMany

Created on 6 May 2016  路  2Comments  路  Source: spring-projects/spring-boot

When running spring-boot-sample-jpa insert errors occures. The import.sql file try to insert into note_tags table but the table that麓s get created is note_tag (without s)

bug

All 2 comments

This is due to the Hibernate 5 migration: the naming strategy with H4 creates a note_tags table while H5 creates note_tag.

@snicoll convinced me we should try to customise the implicit naming strategy to align with Boot 1.3's behaviour

Was this page helpful?
0 / 5 - 0 ratings