jQuery in Action, 3rd edition
The moose likes Object Relational Mapping and the fly likes Hibernate3 Auto code (hbm, schema) generation tools Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate3 Auto code (hbm, schema) generation tools" Watch "Hibernate3 Auto code (hbm, schema) generation tools" New topic

Hibernate3 Auto code (hbm, schema) generation tools

Shailesh Welankar
Ranch Hand

Joined: Dec 30, 2002
Posts: 35
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
SCDJWS 1.4 | SCBCD 5.0 | SCWCD 1.4 | SCJP 1.4 | Preparing for SCEA 5
Shailesh Welankar
Ranch Hand

Joined: Dec 30, 2002
Posts: 35

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.

I agree. Here's the link: http://aspose.com/file-tools
subject: Hibernate3 Auto code (hbm, schema) generation tools
It's not a secret anymore!