Using the HibernateTool ant task to control the names of the models
posted 7 years ago
I'm reverse engineering models using the hibernatetool ant task. It works great except to conform to my client's standards the names of the models should be slightly different than what is being generated.
If the table is SOME_MODEL then model is created as SomeModel.java. That's good, but I'd prefer SomeModelDTO.java. I like the content of the models as-is and as such don't want to use hbmtemplate which seems to want me to specify a template. The default would do nicely!
If someone could point me to some documentation on how to change the model name or how to use hbmtemplate without using a template (oxymoron?) I'd appreciate it.