Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

Commit

Permalink
Support of tables naming for the inner classes was added.
Browse files Browse the repository at this point in the history
  • Loading branch information
buzden committed Sep 2, 2014
1 parent 50531b0 commit 7a17468
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class DefaultNamingStrategy implements NamingStrategy, Serializable {
* underscores
*/
public String classToTableName(String className) {
return addUnderscores( unqualify(className) );
return addUnderscores( unqualify(className).replaceAll("$", "_inter_") );
}
/**
* Return the full property path with underscore seperators, mixed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ private SqlObjectDefinition(SqlObjectConfig config, Class<T> objectType, Map<Str
sqlName = t.name();
}
else {
sqlName = config.getNamingStrategy().classToTableName(objectType.getCanonicalName());
sqlName = config.getNamingStrategy().classToTableName(objectType.getName());
}
}

Expand Down

0 comments on commit 7a17468

Please sign in to comment.