Recently I tried to create DDLs with the
...
Hibernate 3 Maven Plugin. Since I was using Hibernate 4 this did not work. Since Hibernate 4 provides support for DDL generation, the integration into a Maven plugin proofed not to be very difficult.
I wrote a quick-and-simple
...
Hibernate 4 Maven Plugin that provides just the DDL generation I needed. Please consider it not to be a replacement for the fine hibernate3-maven-plugin! But if DDL creation is all you need for Hibernate 4,
...
the Hibernate 4 Maven Plugin might come handy to you.
The following POM fragment shows everything the plugin is currently (version 0.1.1) capable of:
...
Code Block | ||
---|---|---|
| ||
<plugin> |
...
<groupId>de.smartics.maven. |
...
plugin</groupId> |
...
<artifactId>hibernate4-maven- |
...
plugin</artifactId> |
...
<version>0.1. |
...
1</version> |
...
<executions> |
...
<execution> |
...
<id>export</id> |
...
<goals> |
...
<goal>hbm2ddl</goal> |
...
</goals> |
...
</execution> |
...
</executions> |
...
<configuration> |
...
<unitName>jpa-unitname</unitName> </configuration> </plugin> |