Win a copy of TensorFlow 2.0 in Action this week in the Artificial Intelligence and Machine Learning forum!
  • 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
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

Hibernate3 Auto code (hbm, schema) generation tools

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Fellow Ranchers

I have worked extensively on Hibernate2 till about three years back. Now I am required to work on Hibernate again, but this time we are using the latest Hibernate v3.5.

We used to generate the schema, domain and hbm files by using Hibernate Tools in Hibernate2. But, now I am unable to find anything similar for Hibernate3.
The Eclipse JBoss (Hibernate is now a part of JBoss) plugins wont work for me - Some Eclipse issues.
My question was - Are there any Tools (command-line based) for auto code generation in Hibernate3 that any one of you use. If so, please let me know. I tried searching the net and this forum for the same but could not find it, so I am wondering how other guys go about writing their mapping classes and XMLs in Hibernate3?!!
I might be missing something - Do the annotations come into picture which somehow make auto-code generation useless in Hibernate3??

thanks in advance!

P.S.> I can refer to Hibernate3 book, but I don't have access to it as of now and it may or may not contain this. The online documentation on Hibernate website does mention Tools but thats with Eclipse / Ant, which is not working for me.
 
Shailesh Welankar
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

OK!! I have got a partial solution / workaround for this - I was using Eclipse Ganymede(v3.4), so I made a fresh installation of Eclipse Galileo (v3.5) which comes pre-installed with WTP plugins and JEE plugins. I added a new site for the JBoss Eclipse Tools for Galileo and pointed it to the URL : http://download.jboss.org/jbosstools/updates/stable/galileo/

When the sub-sections list appeared with selections to be made for installs, I ONLY selected the Hibernate Tool from the section named "All JBoss Tools - 3.1.0.v201003050540R-H56-GA" and installed only that tool. I was not needed to install any other plugin and once I did an Eclipse restart, I am now able to get the Hibernate perspective in Eclipse!! I am still navigating that and learning along the way.

So that has partially answered my question - listing this solution for anybody else having the same issue.
Still if you have any other Tools that you use for Hibernate3 auto-code generation, I would be glad to hear from you.

 
reply
    Bookmark Topic Watch Topic
  • New Topic