• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MiddleGen : generate schema with hbm file

 
Edward Chen
Ranch Hand
Posts: 798
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, in MiddleGen, if I have hbm file, how can I generate the database schema and bean coding ? Anybody could like to share the Ant script with me ?

Thanks
 
Surya Suravarapu
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My Ant Target looks something like the one below:

 
Edward Chen
Ranch Hand
Posts: 798
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks you.

Is this for MiddleGen ? What about generating java / bean coding ? What your comment on this hibernate tool ? Have some better tool ?

I have used Hibernate Synchronizer, but it sounds like not support bean coding generation.

Thanks
 
Alexandru Popescu
Ranch Hand
Posts: 995
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Edward you have the following options:
- DB -> HBM using Middlegen
- HBM -> JavaBeans using XDoclet
- HBM -> DB using Schema tool in Hibernate Extensions

For more info read the tool chapter in Hibernate official documentation.

./pope
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic