3 xmlns="http://www.w3.org/1999/xhtml"
4 xmlns:layout="http://www.thymeleaf.org"
5 layout:decorator="templates/layout"
8 <title>juplo - blog - hibernate4-maven-plugin</title>
9 <link rel="stylesheet/less" type="text/css" href="../../../less/all.less" th:remove="all"/>
10 <script src="../../../js/less-1.7.0.min.js" th:remove="all"></script>
13 <ol layout:fragment="breadcrumb">
14 <li class="b"><a class="b" href="../index.html" th:href="@{/index.html}">Home</a></li>
15 <li class="b"><strong class="b">Blog</strong></li>
17 <nav layout:fragment="navigation">
19 <a class="hide" href="#top" title="Show Content">Jump back to the top of the page</a>
20 <h1 class="nav">Navigation</h1>
21 <h2 class="nav menu">Section-Menu</h2>
22 <ul id="menu" class="cf">
23 <li class="m blog"><strong class="m">Blog</strong></li>
24 <li class="m projects"><a href="../projects.html" th:href="@{/projects.html}" class="m">Projects</a></li>
25 <li class="m about"><a href="../about.html" th:href="@{/about.html}" class="m">About</a></li>
28 <article class="main" layout:fragment="maincontent">
29 <article id="post-34" class="post-34 post type-post status-publish format-standard hentry category-hibernate category-java category-maven">
30 <div class="entry-header">
31 <h1 class="entry-title">hibernate4-maven-plugin</h1>
32 <div class="entry-meta">
33 Posted on <a href="http://juplo.de/hibernate4-maven-plugin-a-simple-plugin-for-generating-a-database-schema-from-hibernate-4-mapping-annotations/" title="19:29" rel="bookmark"><time class="entry-date" datetime="2012-11-28T19:29:12+00:00">November 28, 2012</time></a><span class="byline"> by <span class="author vcard"><a class="url fn n" href="http://juplo.de/author/kai/" title="View all posts by Kai Moritz" rel="author">Kai Moritz</a></span></span>
34 </div><!-- .entry-meta -->
35 </div><!-- .entry-header -->
36 <div class="entry-content">
37 <h2>A simple Plugin for generating a Database-Schema from Hibernate 4 Mapping-Annotations</h2>
39 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 <code>hbm2ddl.auto</code> (see <a href="http://docs.jboss.org/hibernate/orm/4.1/manual/en-US/html_single/#configuration-optional" onclick="javascript:_gaq.push(['_trackEvent','outbound-article','http://docs.jboss.org']);">Hibernate Reference Documentation – Chapter 3.4. Optional configuration properties</a>). But doing so <a href="http://stackoverflow.com/questions/221379/hibernate-hbm2ddl-auto-update-in-production" onclick="javascript:_gaq.push(['_trackEvent','outbound-article','http://stackoverflow.com']);">is not very wise</a>, because you can easily corrupt or erase your production database, if this configuration parameter slips through to your production environment.
42 Alternatively, you can <a href="http://stackoverflow.com/questions/835961/how-to-creata-database-schema-using-hibernate" onclick="javascript:_gaq.push(['_trackEvent','outbound-article','http://stackoverflow.com']);">run the tools <strong>SchemaExport</strong> or <strong>SchemaUpdate</strong> by hand</a>. 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.
44 <p>In the good old times, there was the <a href="http://mojo.codehaus.org/maven-hibernate3/hibernate3-maven-plugin/" onclick="javascript:_gaq.push(['_trackEvent','outbound-article','http://mojo.codehaus.org']);">Maven Hibernate3 Plugin</a>, that does this for you. But unfortunatly, this plugin is not compatible with Hibernate 4.x. Since there does not seem to be any successor for the Maven Hibernate3 Plugin and <a href="http://www.google.de/search?q=hibernate4+maven+plugin" onclick="javascript:_gaq.push(['_trackEvent','outbound-article','http://www.google.de']);">googeling</a> does not help, I decided to write up this simple plugin (inspired by these two articles I found: <a href="http://www.tikalk.com/alm/blog/schema-export-hibernate-4-and-maven" onclick="javascript:_gaq.push(['_trackEvent','outbound-article','http://www.tikalk.com']);">Schema Export with Hibernate 4 and Maven</a> and <a href="http://doingenterprise.blogspot.de/2012/05/schema-generation-with-hibernate-4-jpa.html" onclick="javascript:_gaq.push(['_trackEvent','outbound-article','http://doingenterprise.blogspot.de']);">Schema generation with Hibernate 4, JPA and Maven</a>).
47 I hope, the resulting simple to use buletproof <a href="/hibernate4-maven-plugin/">hibernate4-maven-plugin</a> is usefull!
50 <strong><a href="/hibernate4-maven-plugin/">Try it out now!</a></strong></p>
51 </div><!-- .entry-content -->
52 <footer class="entry-meta">
53 This entry was posted in <a href="http://juplo.de/category/hibernate/" title="View all posts in Hibernate" rel="category tag">Hibernate</a>, <a href="http://juplo.de/category/java/" title="View all posts in Java" rel="category tag">Java</a>, <a href="http://juplo.de/category/maven/" title="View all posts in Maven" rel="category tag">Maven</a>. Bookmark the <a href="http://juplo.de/hibernate4-maven-plugin-a-simple-plugin-for-generating-a-database-schema-from-hibernate-4-mapping-annotations/" title="Permalink to hibernate4-maven-plugin" rel="bookmark">permalink</a>.
54 </footer><!-- .entry-meta -->
55 </article><!-- #post-34 -->
56 <!-- You can start editing here. -->
57 <h3 id="comments">15 Responses to “hibernate4-maven-plugin”</h3>
58 <div class="navigation">
59 <div class="alignleft"></div>
60 <div class="alignright"></div>
62 <ol class="commentlist">
63 <li class="comment even thread-even depth-1 parent" id="comment-556">
64 <div id="div-comment-556" class="comment-body">
65 <div class="comment-author vcard">
66 <cite class="fn">Jukes</cite> <span class="says">says:</span>
68 <div class="comment-meta commentmetadata"><a href="http://juplo.de/hibernate4-maven-plugin-a-simple-plugin-for-generating-a-database-schema-from-hibernate-4-mapping-annotations/#comment-556">
69 November 7, 2013 at 23:18</a> <a class="comment-edit-link" href="http://juplo.de/wp-admin/comment.php?action=editcomment&c=556" title="Edit comment">(Edit)</a>
72 Hi thanks a lot for making this plugin available, great work!!<br />
73 I have a problem generating postgres schema. Looks like the plugin ignores the data type when adding default values and that yields a syntax error from Postgres. Or maybe I’m doing something wrong. I’m using version 1.0.3.</p>
74 <p>For example I have in java:</p>
76 @Column(name = “financialEnabled”, nullable = false, columnDefinition = “default TRUE”)<br />
77 private boolean financialEnabled;
80 Generated SQL is:<br />
81 financialEnabled default TRUE not null,
83 <p>As you can see the data type boolean is not translated to the SQL script. Thanks a lot for your help.</p>
85 <a class='comment-reply-link' href='/hibernate4-maven-plugin-a-simple-plugin-for-generating-a-database-schema-from-hibernate-4-mapping-annotations/?replytocom=556#respond' onclick='return addComment.moveForm("div-comment-556", "556", "respond", "34")'>Reply</a>
89 <li class="comment byuser comment-author-kai bypostauthor odd alt depth-2" id="comment-567">
90 <div id="div-comment-567" class="comment-body">
91 <div class="comment-author vcard">
92 <cite class="fn"><a href="http://juplo.de" rel='external nofollow' class='url'>Kai Moritz</a></cite> <span class="says">says:</span>
94 <div class="comment-meta commentmetadata">
95 <a href="http://juplo.de/hibernate4-maven-plugin-a-simple-plugin-for-generating-a-database-schema-from-hibernate-4-mapping-annotations/#comment-567">
96 November 11, 2013 at 13:09</a> <a class="comment-edit-link" href="http://juplo.de/wp-admin/comment.php?action=editcomment&c=567" title="Edit comment">(Edit)
100 This plugin is only a tool to automate the generation of the SQL in your development-environment.<br />
101 Questions on how to anotate your code correctly are better asked in a user-forum from hibernate or such.</p>
103 Nevertheless, I think I can give you a usefull hint:<br />
104 You are overwriting the automatically generated column-definition with “default TRUE”.<br />
107 @Column(name = “financialEnabled”, nullable = false)<br />
108 private boolean financialEnabled;</p>
110 <a class='comment-reply-link' href='/hibernate4-maven-plugin-a-simple-plugin-for-generating-a-database-schema-from-hibernate-4-mapping-annotations/?replytocom=567#respond' onclick='return addComment.moveForm("div-comment-567", "567", "respond", "34")'>Reply</a>
113 </li><!-- #comment-## -->
114 </ul><!-- .children -->
115 </li><!-- #comment-## -->
116 <li class="comment even thread-odd thread-alt depth-1 parent" id="comment-390">
117 <div id="div-comment-390" class="comment-body">
118 <div class="comment-author vcard">
119 <cite class="fn">Milios</cite> <span class="says">says:</span>
121 <div class="comment-meta commentmetadata">
122 <a href="http://juplo.de/hibernate4-maven-plugin-a-simple-plugin-for-generating-a-database-schema-from-hibernate-4-mapping-annotations/#comment-390">
123 October 10, 2013 at 15:02
126 <a class="comment-edit-link" href="http://juplo.de/wp-admin/comment.php?action=editcomment&c=390" title="Edit comment">(Edit)</a>
130 looks like a very nice plugin. Unfortunately, part of our entities are in other modules/dependencies.<br />
131 Do you plan to add the possibility to scan also for dependencies of the project or at least of the plugin?</p>
132 <p>Also, when I only want to generate the SQL and use the following configuration, I got nothing.</p>
136 hibernate4-maven-plugin<br />
142 com.deutscheboerse.hibernate.PostgreSQLDialect<br />
143 ${project.build.directory}/hibernate4/cmm-schema.sql</p>
145 com.deutscheboerse.energy<br />
146 energy-commons-hibernate<br />
147 ${commons.hibernate.version}</p>
149 org.springframework.security<br />
150 spring-security-core<br />
151 ${spring.security.version}</p>
158 mvn hibernate4:export -e<br />
159 [INFO] Error stacktraces are turned on.<br />
160 [INFO] Scanning for projects…<br />
162 [INFO] ————————————————————————<br />
163 [INFO] Building CMM WAR 1.0.0-RC5-SNAPSHOT<br />
164 [INFO] ————————————————————————<br />
166 [INFO] — hibernate4-maven-plugin:1.0.2:export (default-cli) @ cmm-war —<br />
167 [INFO] Scanning directory D:\_dev\work\ii\src\cmm\trunk\cmm-war\target\classes f<br />
168 [INFO] No hibernate-properties-file found! (Checked path: D:\_dev\work\ii\src\cm<br />
169 [INFO] Gathered hibernate-configuration (turn on debugging for details):<br />
170 [INFO] hibernate.dialect = com.deutscheboerse.hibernate.PostgreSQLDialect<br />
171 [INFO] HHH000400: Using dialect: com.deutscheboerse.hibernate.PostgreSQLDialect<br />
172 [INFO] ————————————————————————<br />
173 [INFO] BUILD SUCCESS<br />
174 [INFO] ————————————————————————<br />
175 [INFO] Total time: 10.932s<br />
176 [INFO] Finished at: Thu Oct 10 12:51:05 UTC 2013<br />
177 [INFO] Final Memory: 9M/23M<br />
178 [INFO] ————————————————————————</p>
180 Thanks for any help,<br />
184 <a class='comment-reply-link' href='/hibernate4-maven-plugin-a-simple-plugin-for-generating-a-database-schema-from-hibernate-4-mapping-annotations/?replytocom=390#respond' onclick='return addComment.moveForm("div-comment-390", "390", "respond", "34")'>Reply</a>
187 <ul class="children">
188 <li class="comment byuser comment-author-kai bypostauthor odd alt depth-2 parent" id="comment-391">
189 <div id="div-comment-391" class="comment-body">
190 <div class="comment-author vcard">
191 <cite class="fn"><a href="http://juplo.de" rel='external nofollow' class='url'>Kai Moritz</a></cite> <span class="says">says:</span>
193 <div class="comment-meta commentmetadata">
194 <a href="http://juplo.de/hibernate4-maven-plugin-a-simple-plugin-for-generating-a-database-schema-from-hibernate-4-mapping-annotations/#comment-391">
195 October 10, 2013 at 22:19
198 <a class="comment-edit-link" href="http://juplo.de/wp-admin/comment.php?action=editcomment&c=391" title="Edit comment">(Edit)</a> </div>
200 Yes, I am working on the possibility, to scan for annotations in dependencies.<br />
201 Unfortunatly, I have no example-project for this use-case by hand.<br />
202 It would help a lot, if you could provide a sample-project on github or such.
206 <a class='comment-reply-link' href='/hibernate4-maven-plugin-a-simple-plugin-for-generating-a-database-schema-from-hibernate-4-mapping-annotations/?replytocom=391#respond' onclick='return addComment.moveForm("div-comment-391", "391", "respond", "34")'>Reply</a>
209 <ul class="children">
210 <li class="comment byuser comment-author-kai bypostauthor even depth-3" id="comment-568">
211 <div id="div-comment-568" class="comment-body">
212 <div class="comment-author vcard">
213 <cite class="fn"><a href="http://juplo.de" rel='external nofollow' class='url'>Kai Moritz</a></cite> <span class="says">says:</span>
215 <div class="comment-meta commentmetadata"><a href="http://juplo.de/hibernate4-maven-plugin-a-simple-plugin-for-generating-a-database-schema-from-hibernate-4-mapping-annotations/#comment-568">
216 November 11, 2013 at 13:11</a> <a class="comment-edit-link" href="http://juplo.de/wp-admin/comment.php?action=editcomment&c=568" title="Edit comment">(Edit)</a> </div>
218 <p>Version 1.0.3 of the plugin can now scan for annotations in the dependencies, too.</p>
221 <a class='comment-reply-link' href='/hibernate4-maven-plugin-a-simple-plugin-for-generating-a-database-schema-from-hibernate-4-mapping-annotations/?replytocom=568#respond' onclick='return addComment.moveForm("div-comment-568", "568", "respond", "34")'>Reply</a> </div>
223 </li><!-- #comment-## -->
224 </ul><!-- .children -->
225 </li><!-- #comment-## -->
226 </ul><!-- .children -->
227 </li><!-- #comment-## -->
228 <li class="comment odd alt thread-even depth-1" id="comment-286">
229 <div id="div-comment-286" class="comment-body">
230 <div class="comment-author vcard">
231 <cite class="fn">Pedro</cite> <span class="says">says:</span> </div>
233 <div class="comment-meta commentmetadata"><a href="http://juplo.de/hibernate4-maven-plugin-a-simple-plugin-for-generating-a-database-schema-from-hibernate-4-mapping-annotations/#comment-286">
234 August 7, 2013 at 18:54</a> <a class="comment-edit-link" href="http://juplo.de/wp-admin/comment.php?action=editcomment&c=286" title="Edit comment">(Edit)</a> </div>
236 <p>Following my previous question, here is the debug info</p>
237 <p>[DEBUG] Dependency: /Users/pmarques/.m2/repository/org/springframework/security/spring-security-acl/3.1.4.RELEASE/spring-security-acl-3.1.4.RELEASE.jar<br />
238 [DEBUG] Dependency: /Users/pmarques/.m2/repository/com/atomikos/atomikos-util/3.6.5/atomikos-util-3.6.5.jar<br />
239 [DEBUG] Dependency: /Users/pmarques/.m2/repository/com/atomikos/transactions-api/3.6.5/transactions-api-3.6.5.jar<br />
240 [DEBUG] Dependency: /Users/pmarques/.m2/repository/javax/transaction/transaction-api/1.1/transaction-api-1.1.jar<br />
241 [DEBUG] Dependency: /Users/pmarques/.m2/repository/com/atomikos/transactions-jdbc-deprecated/3.6.5/transactions-jdbc-deprecated-3.6.5.jar<br />
242 [DEBUG] Dependency: /Users/pmarques/.m2/repository/com/atomikos/transactions-jdbc/3.6.5/transactions-jdbc-3.6.5.jar<br />
243 [DEBUG] Dependency: /Users/pmarques/.m2/repository/com/atomikos/transactions-jta/3.6.5/transactions-jta-3.6.5.jar<br />
244 [DEBUG] Dependency: /Users/pmarques/.m2/repository/com/atomikos/transactions/3.6.5/transactions-3.6.5.jar<br />
245 [DEBUG] Dependency: /Users/pmarques/.m2/repository/org/apache/geronimo/specs/geronimo-jta_1.0.1B_spec/1.0.1/geronimo-jta_1.0.1B_spec-1.0.1.jar<br />
246 [DEBUG] Dependency: /Users/pmarques/.m2/repository/com/atomikos/transactions-jms-deprecated/3.6.5/transactions-jms-deprecated-3.6.5.jar<br />
247 [DEBUG] Dependency: /Users/pmarques/.m2/repository/com/atomikos/transactions-jms/3.6.5/transactions-jms-3.6.5.jar<br />
248 [DEBUG] Dependency: /Users/pmarques/.m2/repository/com/atomikos/transactions-hibernate3/3.6.5/transactions-hibernate3-3.6.5.jar<br />
249 [INFO] Scanning directory /target/classes for annotated classes…</p>
252 <a class='comment-reply-link' href='/hibernate4-maven-plugin-a-simple-plugin-for-generating-a-database-schema-from-hibernate-4-mapping-annotations/?replytocom=286#respond' onclick='return addComment.moveForm("div-comment-286", "286", "respond", "34")'>Reply</a> </div>
254 </li><!-- #comment-## -->
255 <li class="comment even thread-odd thread-alt depth-1 parent" id="comment-285">
256 <div id="div-comment-285" class="comment-body">
257 <div class="comment-author vcard">
258 <cite class="fn">Pedro</cite> <span class="says">says:</span> </div>
260 <div class="comment-meta commentmetadata"><a href="http://juplo.de/hibernate4-maven-plugin-a-simple-plugin-for-generating-a-database-schema-from-hibernate-4-mapping-annotations/#comment-285">
261 August 7, 2013 at 18:49</a> <a class="comment-edit-link" href="http://juplo.de/wp-admin/comment.php?action=editcomment&c=285" title="Edit comment">(Edit)</a> </div>
264 <p>I have the following problem.<br />
265 The project that I use to test (and use the plugin) has the annotated classes as a dependency.<br />
266 I am getting the error:<br />
267 No annotated classes found in directory /target/classes</p>
268 <p>Shouldn’t the plugin scan all the dependencies also?</p>
273 <a class='comment-reply-link' href='/hibernate4-maven-plugin-a-simple-plugin-for-generating-a-database-schema-from-hibernate-4-mapping-annotations/?replytocom=285#respond' onclick='return addComment.moveForm("div-comment-285", "285", "respond", "34")'>Reply</a> </div>
275 <ul class="children">
276 <li class="comment byuser comment-author-kai bypostauthor odd alt depth-2 parent" id="comment-287">
277 <div id="div-comment-287" class="comment-body">
278 <div class="comment-author vcard">
279 <cite class="fn"><a href="http://juplo.de" rel='external nofollow' class='url'>Kai Moritz</a></cite> <span class="says">says:</span> </div>
281 <div class="comment-meta commentmetadata"><a href="http://juplo.de/hibernate4-maven-plugin-a-simple-plugin-for-generating-a-database-schema-from-hibernate-4-mapping-annotations/#comment-287">
282 August 7, 2013 at 19:12</a> <a class="comment-edit-link" href="http://juplo.de/wp-admin/comment.php?action=editcomment&c=287" title="Edit comment">(Edit)</a> </div>
285 <p>I think, that your observation is right.<br />
286 But otherwise, dependencies should only be scanned if requested, because automatic scanning of the dependencies might lead to errors in other situations.</p>
287 <p>If you can make your project available to me (for example via github, or simply by mailing zipped version), I would add a configuration-parameter to enable/disable dependency-scanning and upload the refined plugin to central.</p>
292 <a class='comment-reply-link' href='/hibernate4-maven-plugin-a-simple-plugin-for-generating-a-database-schema-from-hibernate-4-mapping-annotations/?replytocom=287#respond' onclick='return addComment.moveForm("div-comment-287", "287", "respond", "34")'>Reply</a> </div>
294 <ul class="children">
295 <li class="comment byuser comment-author-kai bypostauthor even depth-3" id="comment-426">
296 <div id="div-comment-426" class="comment-body">
297 <div class="comment-author vcard">
298 <cite class="fn"><a href="http://juplo.de" rel='external nofollow' class='url'>Kai Moritz</a></cite> <span class="says">says:</span> </div>
300 <div class="comment-meta commentmetadata"><a href="http://juplo.de/hibernate4-maven-plugin-a-simple-plugin-for-generating-a-database-schema-from-hibernate-4-mapping-annotations/#comment-426">
301 October 18, 2013 at 02:52</a> <a class="comment-edit-link" href="http://juplo.de/wp-admin/comment.php?action=editcomment&c=426" title="Edit comment">(Edit)</a> </div>
303 <p>The <a href="/hibernate4-maven-plugin-1-0-3-released/" title="Open the release-notes" rel="nofollow">new version 1.0.3</a> of the plugin adds support for annotated classes in dependencies!</p>
306 <a class='comment-reply-link' href='/hibernate4-maven-plugin-a-simple-plugin-for-generating-a-database-schema-from-hibernate-4-mapping-annotations/?replytocom=426#respond' onclick='return addComment.moveForm("div-comment-426", "426", "respond", "34")'>Reply</a> </div>
308 </li><!-- #comment-## -->
309 </ul><!-- .children -->
310 </li><!-- #comment-## -->
311 </ul><!-- .children -->
312 </li><!-- #comment-## -->
313 <li class="comment odd alt thread-even depth-1 parent" id="comment-276">
314 <div id="div-comment-276" class="comment-body">
315 <div class="comment-author vcard">
316 <cite class="fn"><a href="http://bidlogix.com" onclick="javascript:_gaq.push(['_trackEvent', 'outbound-commentauthor', 'http://bidlogix.com']);" rel='external nofollow' class='url'>mike</a></cite> <span class="says">says:</span> </div>
318 <div class="comment-meta commentmetadata"><a href="http://juplo.de/hibernate4-maven-plugin-a-simple-plugin-for-generating-a-database-schema-from-hibernate-4-mapping-annotations/#comment-276">
319 July 30, 2013 at 12:57</a> <a class="comment-edit-link" href="http://juplo.de/wp-admin/comment.php?action=editcomment&c=276" title="Edit comment">(Edit)</a> </div>
322 <p>I’m upgrading from hibernate3 to to hibernate4 and have moved from the hibernate3-maven-plugin to this version. I haven’t undertaken (and don’t want to just yet) the big job of changing my hbm mapping files to annotations.</p>
323 <p>As far as I can see this is a show stopper for using your nice plugin. Can you please confirm if this is the case and whether you are planning to add support for scanning for hbm files?</p>
328 <a class='comment-reply-link' href='/hibernate4-maven-plugin-a-simple-plugin-for-generating-a-database-schema-from-hibernate-4-mapping-annotations/?replytocom=276#respond' onclick='return addComment.moveForm("div-comment-276", "276", "respond", "34")'>Reply</a> </div>
330 <ul class="children">
331 <li class="comment byuser comment-author-tortenheber even depth-2" id="comment-277">
332 <div id="div-comment-277" class="comment-body">
333 <div class="comment-author vcard">
334 <cite class="fn">tortenheber</cite> <span class="says">says:</span> </div>
336 <div class="comment-meta commentmetadata"><a href="http://juplo.de/hibernate4-maven-plugin-a-simple-plugin-for-generating-a-database-schema-from-hibernate-4-mapping-annotations/#comment-277">
337 July 31, 2013 at 23:18</a> <a class="comment-edit-link" href="http://juplo.de/wp-admin/comment.php?action=editcomment&c=277" title="Edit comment">(Edit)</a> </div>
340 <p>I added the requested feature in the SNAPSHOT-version.<br />
341 It would be nice, if you could test, if the new feature works, because I have no example project by hand, that still uses hibernate-mapping via XML.</p>
342 <p>You can download an actual build here:</p>
343 <p><a href="https://oss.sonatype.org/content/repositories/snapshots//de/juplo/hibernate4-maven-plugin/1.0.2-SNAPSHOT/" onclick="javascript:_gaq.push(['_trackEvent', 'outbound-comment', 'http://oss.sonatype.org']);" rel="nofollow">https://oss.sonatype.org/content/repositories/snapshots//de/juplo/hibernate4-maven-plugin/1.0.2-SNAPSHOT/</a></p>
344 <p>or build it by yourself from the sources.<br />
345 The feature is documented here:</p>
346 <p><a href="http://juplo.de/hibernate4-maven-plugin-1.0.2-SNAPSHOT/export-mojo.html" rel="nofollow">http://juplo.de/hibernate4-maven-plugin-1.0.2-SNAPSHOT/export-mojo.html</a></p>
351 <a class='comment-reply-link' href='/hibernate4-maven-plugin-a-simple-plugin-for-generating-a-database-schema-from-hibernate-4-mapping-annotations/?replytocom=277#respond' onclick='return addComment.moveForm("div-comment-277", "277", "respond", "34")'>Reply</a> </div>
353 </li><!-- #comment-## -->
354 </ul><!-- .children -->
355 </li><!-- #comment-## -->
356 <li class="comment odd alt thread-odd thread-alt depth-1 parent" id="comment-50">
357 <div id="div-comment-50" class="comment-body">
358 <div class="comment-author vcard">
359 <cite class="fn">Victor</cite> <span class="says">says:</span> </div>
361 <div class="comment-meta commentmetadata"><a href="http://juplo.de/hibernate4-maven-plugin-a-simple-plugin-for-generating-a-database-schema-from-hibernate-4-mapping-annotations/#comment-50">
362 February 22, 2013 at 15:28</a> <a class="comment-edit-link" href="http://juplo.de/wp-admin/comment.php?action=editcomment&c=50" title="Edit comment">(Edit)</a> </div>
364 <p>Hey I have modified your code to support envers and generate auditing tables, if you want I can send you a patch. Thanks!</p>
367 <a class='comment-reply-link' href='/hibernate4-maven-plugin-a-simple-plugin-for-generating-a-database-schema-from-hibernate-4-mapping-annotations/?replytocom=50#respond' onclick='return addComment.moveForm("div-comment-50", "50", "respond", "34")'>Reply</a> </div>
369 <ul class="children">
370 <li class="comment even depth-2 parent" id="comment-51">
371 <div id="div-comment-51" class="comment-body">
372 <div class="comment-author vcard">
373 <cite class="fn">admin</cite> <span class="says">says:</span> </div>
375 <div class="comment-meta commentmetadata"><a href="http://juplo.de/hibernate4-maven-plugin-a-simple-plugin-for-generating-a-database-schema-from-hibernate-4-mapping-annotations/#comment-51">
376 February 22, 2013 at 19:54</a> <a class="comment-edit-link" href="http://juplo.de/wp-admin/comment.php?action=editcomment&c=51" title="Edit comment">(Edit)</a> </div>
378 <p>Your welcom.<br />
382 <a class='comment-reply-link' href='/hibernate4-maven-plugin-a-simple-plugin-for-generating-a-database-schema-from-hibernate-4-mapping-annotations/?replytocom=51#respond' onclick='return addComment.moveForm("div-comment-51", "51", "respond", "34")'>Reply</a> </div>
384 <ul class="children">
385 <li class="comment odd alt depth-3 parent" id="comment-54">
386 <div id="div-comment-54" class="comment-body">
387 <div class="comment-author vcard">
388 <cite class="fn">Victor</cite> <span class="says">says:</span> </div>
390 <div class="comment-meta commentmetadata"><a href="http://juplo.de/hibernate4-maven-plugin-a-simple-plugin-for-generating-a-database-schema-from-hibernate-4-mapping-annotations/#comment-54">
391 February 25, 2013 at 15:28</a> <a class="comment-edit-link" href="http://juplo.de/wp-admin/comment.php?action=editcomment&c=54" title="Edit comment">(Edit)</a> </div>
393 <p>Where to? Is there a github repo?</p>
396 <a class='comment-reply-link' href='/hibernate4-maven-plugin-a-simple-plugin-for-generating-a-database-schema-from-hibernate-4-mapping-annotations/?replytocom=54#respond' onclick='return addComment.moveForm("div-comment-54", "54", "respond", "34")'>Reply</a> </div>
398 <ul class="children">
399 <li class="comment even depth-4" id="comment-55">
400 <div id="div-comment-55" class="comment-body">
401 <div class="comment-author vcard">
402 <cite class="fn">admin</cite> <span class="says">says:</span> </div>
404 <div class="comment-meta commentmetadata"><a href="http://juplo.de/hibernate4-maven-plugin-a-simple-plugin-for-generating-a-database-schema-from-hibernate-4-mapping-annotations/#comment-55">
405 February 25, 2013 at 20:05</a> <a class="comment-edit-link" href="http://juplo.de/wp-admin/comment.php?action=editcomment&c=55" title="Edit comment">(Edit)</a> </div>
407 <p>There is a private git-Repository.<br />
408 <a href="http://juplo.de/hibernate4-maven-plugin/source-repository.html" rel="nofollow">Check the project-documentation!</a></p>
409 <p>You can <a href="http://juplo.de/hibernate4-maven-plugin/team-list.html" rel="nofollow">send me</a> a patch or a pull-request to <a href="mailto:kai@juplo.de">kai@juplo.de</a></p>
412 <a class='comment-reply-link' href='/hibernate4-maven-plugin-a-simple-plugin-for-generating-a-database-schema-from-hibernate-4-mapping-annotations/?replytocom=55#respond' onclick='return addComment.moveForm("div-comment-55", "55", "respond", "34")'>Reply</a> </div>
414 </li><!-- #comment-## -->
415 </ul><!-- .children -->
416 </li><!-- #comment-## -->
417 </ul><!-- .children -->
418 </li><!-- #comment-## -->
419 </ul><!-- .children -->
420 </li><!-- #comment-## -->
423 <div class="navigation">
424 <div class="alignleft"></div>
425 <div class="alignright"></div>
431 <h3>Leave a Reply</h3>
433 <div id="cancel-comment-reply">
434 <small><a rel="nofollow" id="cancel-comment-reply-link" href="/hibernate4-maven-plugin-a-simple-plugin-for-generating-a-database-schema-from-hibernate-4-mapping-annotations/#respond" style="display:none;">Click here to cancel reply.</a></small>
438 <form action="http://juplo.de/wp-comments-post.php" method="post" id="commentform">
441 <p>Logged in as <a href="http://juplo.de/wp-admin/profile.php">Kai Moritz</a>. <a href="http://juplo.de/wp-login.php?action=logout&redirect_to=http%3A%2F%2Fjuplo.de%2Fhibernate4-maven-plugin-a-simple-plugin-for-generating-a-database-schema-from-hibernate-4-mapping-annotations%2F&_wpnonce=09e5cb501d" title="Log out of this account">Log out »</a></p>
444 <!--<p><small><strong>XHTML:</strong> You can use these tags: <code><a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> </code></small></p>-->
446 <p><textarea name="comment" id="comment" cols="58" rows="10" tabindex="4"></textarea></p>
448 <p><input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" />
449 <input type='hidden' name='comment_post_ID' value='34' id='comment_post_ID' />
450 <input type='hidden' name='comment_parent' id='comment_parent' value='0' />
452 <input type="hidden" id="_wp_unfiltered_html_comment_disabled" name="_wp_unfiltered_html_comment_disabled" value="2cfe5768bb" /><script>(function() {
453 if (window === window.parent) {
454 document.getElementById('_wp_unfiltered_html_comment_disabled').name = '_wp_unfiltered_html_comment';
457 <p style="display: none;"><input type="hidden" id="akismet_comment_nonce" name="akismet_comment_nonce" value="18eb674233" /></p>
461 <aside layout:fragment="marginalcontent">
462 <div id="secondary" class="widget-area" role="complementary">
463 <aside id="archives" class="widget">
464 <h1 class="widget-title">Archives</h1>
466 <li><a href='http://juplo.de/2013/10/' title='October 2013'>October 2013</a></li>
467 <li><a href='http://juplo.de/2013/08/' title='August 2013'>August 2013</a></li>
468 <li><a href='http://juplo.de/2013/01/' title='January 2013'>January 2013</a></li>
469 <li><a href='http://juplo.de/2012/11/' title='November 2012'>November 2012</a></li>
472 <aside id="categories" class="widget">
473 <h1 class="widget-title">Most Used Categories</h1>
475 <li class="cat-item cat-item-4"><a href="http://juplo.de/category/java/" title="View all posts filed under Java">Java</a> (6)</li>
476 <li class="cat-item cat-item-6"><a href="http://juplo.de/category/hibernate/" title="View all posts filed under Hibernate">Hibernate</a> (5)</li>
477 <li class="cat-item cat-item-8"><a href="http://juplo.de/category/maven/" title="View all posts filed under Maven">Maven</a> (5)</li>
478 <li class="cat-item cat-item-9"><a href="http://juplo.de/category/jpa/" title="View all posts filed under JPA">JPA</a> (1)</li>
479 <li class="cat-item cat-item-10"><a href="http://juplo.de/category/appengine/" title="View all posts filed under appengine">appengine</a> (1)</li>
480 <li class="cat-item cat-item-11"><a href="http://juplo.de/category/oauth2/" title="View all posts filed under oauth2">oauth2</a> (1)</li>
483 <aside id="search" class="widget widget_search">
484 <h1 class="widget-title">Search</h1>
485 <form role="search" method="get" id="searchform" class="searchform" action="http://juplo.de/">
487 <label class="screen-reader-text" for="s">Search for:</label>
488 <input type="text" value="" name="s" id="s" />
489 <input type="submit" id="searchsubmit" value="Search" />
493 </div><!-- #secondary .widget-area -->
494 <div id="tertiary" class="widget-area" role="supplementary">
495 </div><!-- #tertiary .widget-area -->