- Hibernate comes with the buildin functionality, to automatically create or
- update the database schema.
- This functionality is configured in the session-configuraton via the
- parameter <hbm2ddl.auto>
- (see {{{http://docs.jboss.org/hibernate/orm/4.1/manual/en-US/html_single/#configuration-optional} Hibernate Reference Documentation - Chapter 3.4. Optional configuration properties}}).
- But doing so
- {{{http://stackoverflow.com/questions/221379/hibernate-hbm2ddl-auto-update-in-production} is not very wise}}, because you can easily corrupt or erase your
- production database, if this configuration parameter slips through to your
- production environment.
- Alternatively, you can
- {{{http://stackoverflow.com/questions/835961/how-to-creata-database-schema-using-hibernate} run the tools SchemaExport or SchemaUpdate by hand}}.
- But that is not very comfortable and being used to maven you will quickly
- long for a plugin, that does that job automatically for you, when you fire
- up your test cases.
+ <<hibernate4-maven-plugin>> is a plugin for generating a database-schema
+ from your Hibernate-4-Mappings and create or update your database
+ accordingly.