A simple Plugin for generating a Database-Schema from Hibernate 4 Mapping-Annotations.

hibernate4-maven-plugin is a plugin for generating a database-schema from your Hibernate-4-Mappings and create or update your database accordingly.

The plugin was designed to be easy and safe to use, because it must not never, never happen, that you blow away your production database when firering a maven-build of your webapp on your production-machine! For more information about the insiration to write this tiny plugin, read our blog-article about the hibernate4-maven-plugin.

Documentation and Examples

  • See Examples for Usage-Eplanations and simple examples of how to use this plugin.
  • See Plugin Documentation for the full autogenerated documentation. These are mostly configuration-options of the Hibernate-Tools SchemaExport and SchemaUpdate, that do the work in the background.