Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Does Hibernate have some [B]visual automation tool[/B]?

 
Edward Chen
Ranch Hand
Posts: 798
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does Hibernate have some visual automation toolwhich can capture database tables and generate java bean class and mapping XML files ? It will save us from time-wasted and error-prone.

Thanks
 
Ta Ri Ki Sun
Ranch Hand
Posts: 442
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Edward Chen:
Does Hibernate have some visual automation toolwhich can capture database tables and generate java bean class and mapping XML files ? It will save us from time-wasted and error-prone.

Thanks


search hibernate.org for middlegen, it's still in early phase, and has teething problems, but for simple mapping generation based on schema it does the job, tho I prefer to write the mapping, but then I don't have that many to write.
you can then edit your files as you see fit.
after that run hmb2java through ant or from command line to generate POJO's from your mappings.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic