[jboss-user] [JBoss Tools] - Re: Hibernate tools for Hibernate 4.x

Marcel Stör do-not-reply at jboss.com
Mon Aug 13 07:47:11 EDT 2012

Marcel Stör [https://community.jboss.org/people/marcelstoer] created the discussion

"Re: Hibernate tools for Hibernate 4.x"

To view the discussion, visit: https://community.jboss.org/message/753305#753305

Never mind...

My findings:
* Building 4.0.0 SNAPSHOT myself sort-of work (odd dependencies to Eclipse stuff not in Maven Central).
* Using the manually built 4.0.0 SNAPSHOT in my own Maven build to run hbm2ddl failed with some Ant errors. I suspected Ant version conflicts (two different Ant versions in classpath). Specifically excluding Ant from the 4.0.0 SNAPSHOT dependency yielded no sensible result. The build didn't fail but no DDL was produced.
* I had to revert all my changes and re-add the @Type annotations :-( I realized that hbm2ddl run from Hibernate tools during a Maven build can never do without because there's nothing there that would populate the type registry (equivalent to what Usertype does when the app runs).

All in all several wasted hours just to realize that Hibernate 4 auto-registration is cool but useless if you still depend on hbm2ddl during Maven build.

Reply to this message by going to Community

Start a new discussion in JBoss Tools at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120813/5333a43b/attachment.html 

More information about the jboss-user mailing list