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
[https://community.jboss.org/message/753305#753305]

Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to