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.
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.