• Post Reply Bookmark Topic Watch Topic
  • New Topic

Using the HibernateTool ant task to control the names of the models  RSS feed

Tony Ennis
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!