public class SpringNamingStrategy
extends org.hibernate.cfg.ImprovedNamingStrategy
NamingStrategy
that follows Spring recommended
naming conventions. Naming conventions implemented here are identical to
ImprovedNamingStrategy
with the exception that foreign key columns include the
referenced column name.Constructor and Description |
---|
SpringNamingStrategy() |
Modifier and Type | Method and Description |
---|---|
String |
foreignKeyColumnName(String propertyName,
String propertyEntityName,
String propertyTableName,
String referencedColumnName) |
public String foreignKeyColumnName(String propertyName, String propertyEntityName, String propertyTableName, String referencedColumnName)
foreignKeyColumnName
in interface org.hibernate.cfg.NamingStrategy
foreignKeyColumnName
in class org.hibernate.cfg.ImprovedNamingStrategy
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.