@Test public void propertyToColumnName() { assertThat(strategy.propertyToColumnName("field")).isEqualTo("f_field"); assertThat(strategy.propertyToColumnName("camelCaseField")).isEqualTo("f_camel_case_field"); strategy.getOptions().setColumnPrefix(null); assertThat(strategy.propertyToColumnName("camelCaseField")).isEqualTo("camel_case_field"); }
public String propertyToColumnName(String propertyName) { String result = join(options.getColumnPrefix(), propertyToName(propertyName)); if (needRestrict(options.isRestrictColumnNames())) { return assertName(new NameShorter(options.getMaxLength(), options.hasColumnPrefix()) .columnName(result), propertyName, "@Column(name=\"f_column_name\")"); } return result; }
HibernateNamingStrategy { public String propertyToColumnName(String propertyName) { String result = join(options.getColumnPrefix(), propertyToName(propertyName)); if (needRestrict(options.isRestrictColumnNames())) { return assertName(new NameShorter(options.getMaxLength(), options.hasColumnPrefix()) .columnName(result), propertyName, "@Column(name=\"f_column_name\")"); } return result; } }
HibernateNamingStrategy { public String propertyToColumnName(String propertyName) { String result = join(options.getColumnPrefix(), propertyToName(propertyName)); if (needRestrict(options.isRestrictColumnNames())) { return assertName(new NameShorter(options.getMaxLength(), options.hasColumnPrefix()) .columnName(result), propertyName, "@Column(name=\"f_column_name\")"); } return result; } HibernateNamingStrategy(StrategyOptions options); }
HibernateNamingStrategy { public String propertyToColumnName(String propertyName) { String result = join(options.getColumnPrefix(), propertyToName(propertyName)); if (needRestrict(options.isRestrictColumnNames())) { return assertName(new NameShorter(options.getMaxLength(), options.hasColumnPrefix()) .columnName(result), propertyName, "@Column(name=\"f_column_name\")"); } return result; } HibernateNamingStrategy(StrategyOptions options); StrategyOptions getOptions(); void setOptions(StrategyOptions options); String classToTableName(String className); String propertyToColumnName(String propertyName); String embeddedPropertyToColumnName(String prefix, String embeddedPropertyName,
            boolean dontTouchPrefix); String joinTableName(String ownerEntityTable, String associatedEntityTable); String joinTableName(String ownerEntityTable, String associatedEntityTable,
            String ownerProperty); String joinKeyColumnName(String joinedColumn, String joinedTable); String foreignKeyColumnName(String propertyName, String propertyTableName); String foreignKeyConstraintName(String tableName, String columnName); String uniqueKeyConstraintName(String tableName, String columnName); }
HibernateNamingStrategy { public String propertyToColumnName(String propertyName) { String result = join(options.getColumnPrefix(), propertyToName(propertyName)); if (needRestrict(options.isRestrictColumnNames())) { return assertName(new NameShorter(options.getMaxLength(), options.hasColumnPrefix()) .columnName(result), propertyName, "@Column(name=\"f_column_name\")"); } return result; } HibernateNamingStrategy(StrategyOptions options); StrategyOptions getOptions(); void setOptions(StrategyOptions options); String classToTableName(String className); String propertyToColumnName(String propertyName); String embeddedPropertyToColumnName(String prefix, String embeddedPropertyName,
            boolean dontTouchPrefix); String joinTableName(String ownerEntityTable, String associatedEntityTable); String joinTableName(String ownerEntityTable, String associatedEntityTable,
            String ownerProperty); String joinKeyColumnName(String joinedColumn, String joinedTable); String foreignKeyColumnName(String propertyName, String propertyTableName); String foreignKeyConstraintName(String tableName, String columnName); String uniqueKeyConstraintName(String tableName, String columnName);  }