• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate3 gen tools?

 
Andy Hahn
Ranch Hand
Posts: 225
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I understand that Hibernate3 comes with a SchemaExport to generate a database schema from a mapping file. In Hibernate2, I used Middlegen to generate the mapping file and POJO from the database schema.

Does Hibernate3 come with a built in feature similar to Middlegen? Or should I stick with Middlegen for generating mapping files and POJOS?

Thanks!
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not actually an answer to your question, but the SchemaExport facility isn't new in Hibernate3 - at least Hibernate2 has had it as well (and it works quite well). I don't think it comes with Middlegen-like capability, but am not quite certain; maybe someone else can confirm this.
 
Scott Johnson
Ranch Hand
Posts: 518
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hibernate Tools has an Ant task that will export DDL.
[ January 09, 2006: Message edited by: Scott Johnson ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic