We have a need to modify our table names based on a system property, this allows us to run multiple instance against the same database server for testing.
We implemented a NamingStrategy that overrode the public String tableName(String tableName) method to perform the modification.
This worked great until we need to specify the table name in an @Column annotation because the entity used a secondary table. It looked like the value of the table field for the @Column annotaiton is not run through the NamingStrategy so the name did not match any of the tables for the entity.
It looks like several other annotations such as @JoinColumn have similiar issues.
Any recommendations on how to proceded would be appreciated.
Thanks, Mark
|