Last Updated: February 25, 2016
· wlievens

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: