I am using the Hibernate generation tools in MyEclipse to generate the Java classes, hbm.xml, etc from my DB tables.
In the Hibernate book it talks about custom naming strategies and has a classToTableName() method.
Since I'm generating the class from the table, I need the equivalent of the inverse method: tableToClassName().
I want my tables to have a prefix (e.g. R_USER) but the class should not have the prefix (e.g. User class).
Seems like I would need some config spec in hibernate.cfg.xml.
Is there some way to do this?
Thanks,
_________________ -- Frank
|