Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
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.


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic