Joined: Thu Jun 09, 2005 11:21 am Posts: 1 Location: USA
|
Hibernate version:
3.0 alpha 4
In our project, the database schema design changes very often
and so we like to re-generate the POJO and .hbm.xml files using
Hibernate Tools eclipse plugin.
The problem that I have is when a table has more than one foreign keys
referring to another table, the getter and setter methods follow the naming convention of
get<PKTableName>_1
get<PKTableName>_2
and so on to make it unique.
But we like to follow the naming convention as <u>middlegen</u> does :
get<PKTableName>By<FKFieldName>
and the same thing for the reverse relations as well (i.e many-to-one and one-to-many)
Is there a way to make this happen when I use Hibernate Extension Tools 3.0 Alpha 4?
Thanks
Premanand.
|
|