Beginner |
|
Joined: Thu Oct 04, 2007 12:22 pm Posts: 48
|
I need a way of modifying the table name of a mapped entity after or while it is mapped via annotations. Imaging a class with @Table(name="test"). It would be programmatically mapped via config.addAnnotatedClass(c);
Now is there the possibility to access the entity mapping, change the table name to say 'test_2' before the factory and therefore the tables are created?
some additional infos:
For tracking the modified table names correctly during the db operations I can easily write an own Interceptor. But the interceptor does only offer methods for adding code during database modifications. But I need a hook while creating the tables ..
Hibernate version:
3.3
|
|