I'm working with the hibernatetools version 3.2.0.beta9a and I want to use the database comment to define de attributes names for my POJOs.
I know that the better way to do this is creating the templates. but, in this case I have to develop all the templates for generating de config files, de mapping files. This seems a lot of work.
I found and easy way but i have to chage the tool implementation.
What if the ReverseEngineeringStrategy interface define the method for getting de name of the attributes like
public String columnToPropertyName(TableIdentifier table, Column column);
I made the changes and work fine for me, and I can use more information of the column to define his name in my class, not just the column name.
you think you can include this change in the hibernate-tools?
tx
|