Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
mvn license:check

Generating the DDL for YOUR database

For testing purposes, you can rely on the sample web application to create the appropriate schema on demand. However, if you need the full DDL to show to DBAs, etc. a Maven plugin can be used to generate it.

To generate the DDL, execute the following command from within the openregistry-repository-jpa-impl module:

Code Block

mvn hibernate3:hbm2ddl

By default, it will generate it for the Oracle dialect. To change that open the openregistry-repository-jpa-impl/src/test/resources/hibernate.cfg.xml and change the dialect to the one appropriate for your database. Hopefully we can externalize that in the near future.