Align Hibernate 5 join table names with those from SpringNamingStrategy

Previously, the name of a join table when using Hibernate 5 would
differ from those when using Hibernate 4 with the default
SpringNamingStrategy.

This commit introduces SpringImplicitNamingStrategy which customises the
name of join tables to match those produced by SpringNamingStrategy.

Closes gh-5880
This commit is contained in:
Andy Wilkinson
2016-05-11 10:11:34 +01:00
parent 1bb2c4fc00
commit 5c0d400c23
5 changed files with 63 additions and 13 deletions

View File

@@ -28,8 +28,8 @@
<artifactId>hibernate-entitymanager</artifactId>
</dependency>
<dependency>
<groupId>org.hsqldb</groupId>
<artifactId>hsqldb</artifactId>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>