This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
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
Boost this thread!