You can generate a database schema from your hibernate mappings using maven
If you're using the Hibernate ORM framework and you've got your project set up with Maven, you should look at hibernate3-maven-plugin.
If you run the goal
mvn hibernate3:hbm2ddl
It will take issue DDL statements to create your mapped database schema for you. It works for hbm files as well as for annotations, though for the latter you have to specify a configuration option.
More info:
http://mojo.codehaus.org/maven-hibernate3/hibernate3-maven-plugin/hbm2ddl-mojo.html
Written by Wouter Lievens
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Maven
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#