In Hibernate 5, NamingStartegy has been removed, i.e. EJ3BNamingStrategy is not available any more.
I use a custom naming strategy based on EJ3BNamingStrategy which worked just fine.
I've overridden collectionTableName with
Code:
public String collectionTableName(
String ownerEntity, String ownerEntityTable, String associatedEntity,
String associatedEntityTable,
String propertyName) {
return PREFIX + super.collectionTableName(ownerEntity, ownerEntityTable,
associatedEntity, associatedEntityTable, propertyName).toLowerCase();
}
and cannot find any working equivalent for Hibernate 5.
Can anyone point me in the right direction?