• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Ron McLeod
  • Tim Moores
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Vijitha Kumara

MiddleGen : generate schema with hbm file  RSS feed

 
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
 
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
 
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
 
I'm not sure if I approve of this interruption. But this tiny ad checks out:
global solutions you can do at home or in your backyard
https://www.kickstarter.com/projects/paulwheaton/better-world-boo
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!