|
Hey guys,
I think I found a bug. I use ImplicitNamingStrategyComponentPathImpl and implemented my own PhysicalNamingStrategy which looks like this:
public class IncPhysicalNamingStrategy extends PhysicalNamingStrategyStandardImpl {
@Override
public Identifier toPhysicalTableName(Identifier name, JdbcEnvironment jdbcEnvironment) {
return Identifier.toIdentifier("tbl_" + name.getText().toLowerCase(), name.isQuoted());
}
@Override
public Identifier toPhysicalColumnName(Identifier name, JdbcEnvironment jdbcEnvironment) {
if (name.getText().equals("DTYPE")) return name;
return Identifier.toIdentifier("c_" + name.getText().toLowerCase(), name.isQuoted());
}
}
I hope this is the right place to do things like that. Anyways, it works great as is except for join columns. My tables look like this:
As you can see, the PhysicalNamingStrategy is used on all columns except "fallback_id" which is a join column und managed by Ejb3JoinColumn, which does not use PhysicalNamingStrategy. I think this should go through PhysicalNamingStrategy as well.
|