@Test public void tableName() { boolean dontTouchFirst = false; assertThat(create(21, dontTouchFirst).tableName("merchants_friends_customers")) .isEqualTo("merchnts_frnds_cstmrs"); assertThat(create(8, dontTouchFirst).tableName("merchants_friends")) .isEqualTo("mrchnts_frnds"); dontTouchFirst = true; assertThat(create(10, dontTouchFirst).tableName("merchants_friends")) .isEqualTo("merchants_frnds"); }
public String tableName(String name) { return makeShorter(name); }
NameShorter { public String tableName(String name) { return makeShorter(name); } }
NameShorter { public String tableName(String name) { return makeShorter(name); } NameShorter(int maxLength, boolean dontTouchFirst); }
NameShorter { public String tableName(String name) { return makeShorter(name); } NameShorter(int maxLength, boolean dontTouchFirst); String tableName(String name); String columnName(String name); String embeddedColumnName(String columnPostfix); String joinTableName(String name); String constraintName(String name); }
NameShorter { public String tableName(String name) { return makeShorter(name); } NameShorter(int maxLength, boolean dontTouchFirst); String tableName(String name); String columnName(String name); String embeddedColumnName(String columnPostfix); String joinTableName(String name); String constraintName(String name);  }