Hibernate version: 2.1
The hbm2java tool has a default feature that I found quite annoying. I use ant (as explained in the provided examples) to generate java files and I want to obtain the code for all my tables ( so i don't want to specify any nested "table" element in the middlegen task). But, the name of tables that seems to be in plural ( "Persons" for example) get by default classes with names in singular ("Person" in this case).
I have read that singular and plural forms can be chosen using an attribute in the "table" element but as I said, I don't want to use "table" elements.
I just want classes with the same name that my database's tables have.
How could I avoid it?
Thanks and kind regards,
Jose Luis
|