Clientseitige LESS-Umsetzung integriert
[website] / dist / blog / comments.html
1 <!DOCTYPE html>
2 <html
3     xmlns="http://www.w3.org/1999/xhtml"
4     xmlns:layout="http://www.thymeleaf.org"
5     layout:decorator="templates/layout"
6     >
7   <head>
8     <title>juplo - blog - hibernate4-maven-plugin</title>
9     <!--/*-->
10     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
11     <link rel="stylesheet/less" type="text/css" href="../less/base.less"/>
12     <link rel="stylesheet/less" type="text/css" href="../less/screen.less" media="screen"/>
13     <link rel="stylesheet/less" type="text/css" href="../less/print.less" media="print"/>
14     <script src="../js/less-1.7.0.min.js"></script>
15     <!--*/-->
16   </head>
17   <body>
18     <ol layout:fragment="breadcrumb">
19       <li class="b"><a class="b" href="../index.html" th:href="@{/index.html}">Home</a></li>
20       <li class="b"><strong class="b">Blog</strong></li>
21     </ol>
22     <nav layout:fragment="navigation">
23       <hr class="n"/>
24       <a class="hide" href="#top" title="Show Content">Jump back to the top of the page</a>
25       <h1 class="nav">Navigation</h1>
26       <h2 class="nav menu">Section-Menu</h2>
27       <ul id="menu" class="cf">
28         <li class="m blog"><strong class="m">Blog</strong></li>
29         <li class="m projects"><a href="../projects.html" th:href="@{/projects.html}" class="m">Projects</a></li>
30         <li class="m about"><a href="../about.html" th:href="@{/about.html}" class="m">About</a></li>
31       </ul>
32     </nav>
33     <article class="main" layout:fragment="maincontent">
34       <article id="post-34" class="post-34 post type-post status-publish format-standard hentry category-hibernate category-java category-maven">
35         <div class="entry-header">
36           <h1 class="entry-title">hibernate4-maven-plugin</h1>
37           <div class="entry-meta">
38             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>
39           </div><!-- .entry-meta -->
40         </div><!-- .entry-header -->
41         <div class="entry-content">
42           <h2>A simple Plugin for generating a Database-Schema from Hibernate 4 Mapping-Annotations</h2>
43           <p>
44             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 &#8211; 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.
45           </p>
46           <p>
47             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.
48           </p>
49           <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>).
50           </p>
51           <p>
52             I hope, the resulting simple to use buletproof <a href="/hibernate4-maven-plugin/">hibernate4-maven-plugin</a> is usefull!
53           </p>
54           <p>
55             <strong><a href="/hibernate4-maven-plugin/">Try it out now!</a></strong></p>
56         </div><!-- .entry-content -->
57         <footer class="entry-meta">
58           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>. 
59         </footer><!-- .entry-meta -->
60       </article><!-- #post-34 -->
61       <!-- You can start editing here. -->
62       <h3 id="comments">15 Responses to &#8220;hibernate4-maven-plugin&#8221;</h3>
63       <div class="navigation">
64         <div class="alignleft"></div>
65         <div class="alignright"></div>
66       </div>
67       <ol class="commentlist">
68         <li class="comment even thread-even depth-1 parent" id="comment-556">
69           <div id="div-comment-556" class="comment-body">
70             <div class="comment-author vcard">
71               <cite class="fn">Jukes</cite> <span class="says">says:</span>
72             </div>
73             <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">
74                 November 7, 2013 at 23:18</a>&nbsp;&nbsp;<a class="comment-edit-link" href="http://juplo.de/wp-admin/comment.php?action=editcomment&amp;c=556" title="Edit comment">(Edit)</a>
75             </div>
76             <p>
77               Hi thanks a lot for making this plugin available, great work!!<br />
78               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&#8217;m doing something wrong. I&#8217;m using version 1.0.3.</p>
79             <p>For example I have in java:</p>
80             <p>
81               @Column(name = &#8220;financialEnabled&#8221;, nullable = false, columnDefinition = &#8220;default TRUE&#8221;)<br />
82               private boolean financialEnabled;
83             </p>
84             <p>
85               Generated SQL is:<br />
86               financialEnabled default TRUE not null,
87             </p>
88             <p>As you can see the data type boolean is not translated to the SQL script. Thanks a lot for your help.</p>
89             <div class="reply">
90               <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>
91             </div>
92           </div>
93           <ul class="children">
94             <li class="comment byuser comment-author-kai bypostauthor odd alt depth-2" id="comment-567">
95               <div id="div-comment-567" class="comment-body">
96                 <div class="comment-author vcard">
97                   <cite class="fn"><a href="http://juplo.de"   rel='external nofollow' class='url'>Kai Moritz</a></cite> <span class="says">says:</span>
98                 </div>
99                 <div class="comment-meta commentmetadata">
100                   <a href="http://juplo.de/hibernate4-maven-plugin-a-simple-plugin-for-generating-a-database-schema-from-hibernate-4-mapping-annotations/#comment-567">
101                     November 11, 2013 at 13:09</a>&nbsp;&nbsp;<a class="comment-edit-link" href="http://juplo.de/wp-admin/comment.php?action=editcomment&amp;c=567" title="Edit comment">(Edit)
102                   </a>
103                 </div>
104                 <p>
105                   This plugin is only a tool to automate the generation of the SQL in your development-environment.<br />
106                   Questions on how to anotate your code correctly are better asked in a user-forum from hibernate or such.</p>
107                 <p>
108                   Nevertheless, I think I can give you a usefull hint:<br />
109                   You are overwriting the automatically generated column-definition with &#8220;default TRUE&#8221;.<br />
110                   Try it with</p>
111                 <p>
112                   @Column(name = “financialEnabled”, nullable = false)<br />
113                   private boolean financialEnabled;</p>
114                 <div class="reply">
115                   <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>
116                 </div>
117               </div>
118             </li><!-- #comment-## -->
119           </ul><!-- .children -->
120         </li><!-- #comment-## -->
121         <li class="comment even thread-odd thread-alt depth-1 parent" id="comment-390">
122           <div id="div-comment-390" class="comment-body">
123             <div class="comment-author vcard">
124               <cite class="fn">Milios</cite> <span class="says">says:</span>
125             </div>
126             <div class="comment-meta commentmetadata">
127               <a href="http://juplo.de/hibernate4-maven-plugin-a-simple-plugin-for-generating-a-database-schema-from-hibernate-4-mapping-annotations/#comment-390">
128                 October 10, 2013 at 15:02
129               </a>
130               &nbsp;&nbsp;
131               <a class="comment-edit-link" href="http://juplo.de/wp-admin/comment.php?action=editcomment&amp;c=390" title="Edit comment">(Edit)</a>
132             </div>
133             <p>Hi,</p>
134             <p>
135               looks like a very nice plugin. Unfortunately, part of our entities are in other modules/dependencies.<br />
136               Do you plan to add the possibility to scan also for dependencies of the project or at least of the plugin?</p>
137             <p>Also, when I only want to generate the SQL and use the following configuration, I got nothing.</p>
138             <p>Config:</p>
139             <p>
140               de.juplo<br />
141               hibernate4-maven-plugin<br />
142               1.0.2</p>
143             <p>
144               true<br />
145               SCRIPT<br />
146               NONE<br />
147               com.deutscheboerse.hibernate.PostgreSQLDialect<br />
148               ${project.build.directory}/hibernate4/cmm-schema.sql</p>
149             <p>
150               com.deutscheboerse.energy<br />
151               energy-commons-hibernate<br />
152               ${commons.hibernate.version}</p>
153             <p>
154               org.springframework.security<br />
155               spring-security-core<br />
156               ${spring.security.version}</p>
157             <p>
158               org.slf4j<br />
159               slf4j-log4j12<br />
160               ${slf4j.version}</p>
161             <p>
162               Output:<br />
163               mvn hibernate4:export -e<br />
164               [INFO] Error stacktraces are turned on.<br />
165               [INFO] Scanning for projects&#8230;<br />
166               [INFO]<br />
167               [INFO] &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
168               [INFO] Building CMM WAR 1.0.0-RC5-SNAPSHOT<br />
169               [INFO] &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
170               [INFO]<br />
171               [INFO] &#8212; hibernate4-maven-plugin:1.0.2:export (default-cli) @ cmm-war &#8212;<br />
172               [INFO] Scanning directory D:\_dev\work\ii\src\cmm\trunk\cmm-war\target\classes f<br />
173               [INFO] No hibernate-properties-file found! (Checked path: D:\_dev\work\ii\src\cm<br />
174               [INFO] Gathered hibernate-configuration (turn on debugging for details):<br />
175               [INFO]   hibernate.dialect = com.deutscheboerse.hibernate.PostgreSQLDialect<br />
176               [INFO] HHH000400: Using dialect: com.deutscheboerse.hibernate.PostgreSQLDialect<br />
177               [INFO] &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
178               [INFO] BUILD SUCCESS<br />
179               [INFO] &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
180               [INFO] Total time: 10.932s<br />
181               [INFO] Finished at: Thu Oct 10 12:51:05 UTC 2013<br />
182               [INFO] Final Memory: 9M/23M<br />
183               [INFO] &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
184             <p>
185               Thanks for any help,<br />
186               Milos.
187             </p>
188             <div class="reply">
189               <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>
190             </div>
191           </div>
192           <ul class="children">
193             <li class="comment byuser comment-author-kai bypostauthor odd alt depth-2 parent" id="comment-391">
194               <div id="div-comment-391" class="comment-body">
195                 <div class="comment-author vcard">
196                   <cite class="fn"><a href="http://juplo.de"   rel='external nofollow' class='url'>Kai Moritz</a></cite> <span class="says">says:</span>
197                 </div>
198                 <div class="comment-meta commentmetadata">
199                   <a href="http://juplo.de/hibernate4-maven-plugin-a-simple-plugin-for-generating-a-database-schema-from-hibernate-4-mapping-annotations/#comment-391">
200                     October 10, 2013 at 22:19
201                   </a>
202                   &nbsp;&nbsp;
203                   <a class="comment-edit-link" href="http://juplo.de/wp-admin/comment.php?action=editcomment&amp;c=391" title="Edit comment">(Edit)</a>         </div>
204                 <p>
205                   Yes, I am working on the possibility, to scan for annotations in dependencies.<br />
206                   Unfortunatly, I have no example-project for this use-case by hand.<br />
207                   It would help a lot, if you could provide a sample-project on github or such.
208                 </p>
209                 <p>Greetings kai</p>
210                 <div class="reply">
211                   <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>
212                 </div>
213               </div>
214               <ul class="children">
215                 <li class="comment byuser comment-author-kai bypostauthor even depth-3" id="comment-568">
216                   <div id="div-comment-568" class="comment-body">
217                     <div class="comment-author vcard">
218                       <cite class="fn"><a href="http://juplo.de"   rel='external nofollow' class='url'>Kai Moritz</a></cite> <span class="says">says:</span>
219                     </div>
220                     <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">
221                         November 11, 2013 at 13:11</a>&nbsp;&nbsp;<a class="comment-edit-link" href="http://juplo.de/wp-admin/comment.php?action=editcomment&amp;c=568" title="Edit comment">(Edit)</a>         </div>
222   
223                     <p>Version 1.0.3 of the plugin can now scan for annotations in the dependencies, too.</p>
224   
225                     <div class="reply">
226                       <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>
227                   </div>
228                 </li><!-- #comment-## -->
229               </ul><!-- .children -->
230             </li><!-- #comment-## -->
231           </ul><!-- .children -->
232         </li><!-- #comment-## -->
233         <li class="comment odd alt thread-even depth-1" id="comment-286">
234           <div id="div-comment-286" class="comment-body">
235             <div class="comment-author vcard">
236               <cite class="fn">Pedro</cite> <span class="says">says:</span>             </div>
237   
238             <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">
239                 August 7, 2013 at 18:54</a>&nbsp;&nbsp;<a class="comment-edit-link" href="http://juplo.de/wp-admin/comment.php?action=editcomment&amp;c=286" title="Edit comment">(Edit)</a>            </div>
240   
241             <p>Following my previous question, here is the debug info</p>
242             <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 />
243               [DEBUG] Dependency: /Users/pmarques/.m2/repository/com/atomikos/atomikos-util/3.6.5/atomikos-util-3.6.5.jar<br />
244               [DEBUG] Dependency: /Users/pmarques/.m2/repository/com/atomikos/transactions-api/3.6.5/transactions-api-3.6.5.jar<br />
245               [DEBUG] Dependency: /Users/pmarques/.m2/repository/javax/transaction/transaction-api/1.1/transaction-api-1.1.jar<br />
246               [DEBUG] Dependency: /Users/pmarques/.m2/repository/com/atomikos/transactions-jdbc-deprecated/3.6.5/transactions-jdbc-deprecated-3.6.5.jar<br />
247               [DEBUG] Dependency: /Users/pmarques/.m2/repository/com/atomikos/transactions-jdbc/3.6.5/transactions-jdbc-3.6.5.jar<br />
248               [DEBUG] Dependency: /Users/pmarques/.m2/repository/com/atomikos/transactions-jta/3.6.5/transactions-jta-3.6.5.jar<br />
249               [DEBUG] Dependency: /Users/pmarques/.m2/repository/com/atomikos/transactions/3.6.5/transactions-3.6.5.jar<br />
250               [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 />
251               [DEBUG] Dependency: /Users/pmarques/.m2/repository/com/atomikos/transactions-jms-deprecated/3.6.5/transactions-jms-deprecated-3.6.5.jar<br />
252               [DEBUG] Dependency: /Users/pmarques/.m2/repository/com/atomikos/transactions-jms/3.6.5/transactions-jms-3.6.5.jar<br />
253               [DEBUG] Dependency: /Users/pmarques/.m2/repository/com/atomikos/transactions-hibernate3/3.6.5/transactions-hibernate3-3.6.5.jar<br />
254               [INFO] Scanning directory /target/classes for annotated classes&#8230;</p>
255   
256             <div class="reply">
257               <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>
258           </div>
259         </li><!-- #comment-## -->
260         <li class="comment even thread-odd thread-alt depth-1 parent" id="comment-285">
261           <div id="div-comment-285" class="comment-body">
262             <div class="comment-author vcard">
263               <cite class="fn">Pedro</cite> <span class="says">says:</span>             </div>
264   
265             <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">
266                 August 7, 2013 at 18:49</a>&nbsp;&nbsp;<a class="comment-edit-link" href="http://juplo.de/wp-admin/comment.php?action=editcomment&amp;c=285" title="Edit comment">(Edit)</a>            </div>
267   
268             <p>Hi,</p>
269             <p>I have the following problem.<br />
270               The project that I use to test (and use the plugin) has the annotated classes as a dependency.<br />
271               I am getting the error:<br />
272               No annotated classes found in directory /target/classes</p>
273             <p>Shouldn&#8217;t the plugin scan all the dependencies also?</p>
274             <p>Thanks,<br />
275               Pedro.</p>
276   
277             <div class="reply">
278               <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>
279           </div>
280           <ul class="children">
281             <li class="comment byuser comment-author-kai bypostauthor odd alt depth-2 parent" id="comment-287">
282               <div id="div-comment-287" class="comment-body">
283                 <div class="comment-author vcard">
284                   <cite class="fn"><a href="http://juplo.de"   rel='external nofollow' class='url'>Kai Moritz</a></cite> <span class="says">says:</span>                </div>
285   
286                 <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">
287                     August 7, 2013 at 19:12</a>&nbsp;&nbsp;<a class="comment-edit-link" href="http://juplo.de/wp-admin/comment.php?action=editcomment&amp;c=287" title="Edit comment">(Edit)</a>                </div>
288   
289                 <p>Hi Pedro,</p>
290                 <p>I think, that your observation is right.<br />
291                   But otherwise, dependencies should only be scanned if requested, because automatic scanning of the dependencies might lead to errors in other situations.</p>
292                 <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>
293                 <p>Regards,</p>
294                 <p>Kai Moritz</p>
295   
296                 <div class="reply">
297                   <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>
298               </div>
299               <ul class="children">
300                 <li class="comment byuser comment-author-kai bypostauthor even depth-3" id="comment-426">
301                   <div id="div-comment-426" class="comment-body">
302                     <div class="comment-author vcard">
303                       <cite class="fn"><a href="http://juplo.de"   rel='external nofollow' class='url'>Kai Moritz</a></cite> <span class="says">says:</span>            </div>
304   
305                     <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">
306                         October 18, 2013 at 02:52</a>&nbsp;&nbsp;<a class="comment-edit-link" href="http://juplo.de/wp-admin/comment.php?action=editcomment&amp;c=426" title="Edit comment">(Edit)</a>          </div>
307   
308                     <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>
309   
310                     <div class="reply">
311                       <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>
312                   </div>
313                 </li><!-- #comment-## -->
314               </ul><!-- .children -->
315             </li><!-- #comment-## -->
316           </ul><!-- .children -->
317         </li><!-- #comment-## -->
318         <li class="comment odd alt thread-even depth-1 parent" id="comment-276">
319           <div id="div-comment-276" class="comment-body">
320             <div class="comment-author vcard">
321               <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>
322   
323             <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">
324                 July 30, 2013 at 12:57</a>&nbsp;&nbsp;<a class="comment-edit-link" href="http://juplo.de/wp-admin/comment.php?action=editcomment&amp;c=276" title="Edit comment">(Edit)</a>             </div>
325   
326             <p>Hello,</p>
327             <p>I&#8217;m upgrading from hibernate3 to to hibernate4 and have moved from the hibernate3-maven-plugin to this version. I haven&#8217;t undertaken (and don&#8217;t want to just yet) the big job of changing my hbm mapping files to annotations.</p>
328             <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>
329             <p>Many thanks,</p>
330             <p>Mike Cohen.</p>
331   
332             <div class="reply">
333               <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>
334           </div>
335           <ul class="children">
336             <li class="comment byuser comment-author-tortenheber even depth-2" id="comment-277">
337               <div id="div-comment-277" class="comment-body">
338                 <div class="comment-author vcard">
339                   <cite class="fn">tortenheber</cite> <span class="says">says:</span>           </div>
340   
341                 <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">
342                     July 31, 2013 at 23:18</a>&nbsp;&nbsp;<a class="comment-edit-link" href="http://juplo.de/wp-admin/comment.php?action=editcomment&amp;c=277" title="Edit comment">(Edit)</a>         </div>
343   
344                 <p>Hello Mike,</p>
345                 <p>I added the requested feature in the SNAPSHOT-version.<br />
346                   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>
347                 <p>You can download an actual build here:</p>
348                 <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>
349                 <p>or build it by yourself from the sources.<br />
350                   The feature is documented here:</p>
351                 <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>
352                 <p>Best regards</p>
353                 <p>kai</p>
354   
355                 <div class="reply">
356                   <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>
357               </div>
358             </li><!-- #comment-## -->
359           </ul><!-- .children -->
360         </li><!-- #comment-## -->
361         <li class="comment odd alt thread-odd thread-alt depth-1 parent" id="comment-50">
362           <div id="div-comment-50" class="comment-body">
363             <div class="comment-author vcard">
364               <cite class="fn">Victor</cite> <span class="says">says:</span>            </div>
365   
366             <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">
367                 February 22, 2013 at 15:28</a>&nbsp;&nbsp;<a class="comment-edit-link" href="http://juplo.de/wp-admin/comment.php?action=editcomment&amp;c=50" title="Edit comment">(Edit)</a>          </div>
368   
369             <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>
370   
371             <div class="reply">
372               <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>
373           </div>
374           <ul class="children">
375             <li class="comment even depth-2 parent" id="comment-51">
376               <div id="div-comment-51" class="comment-body">
377                 <div class="comment-author vcard">
378                   <cite class="fn">admin</cite> <span class="says">says:</span>         </div>
379   
380                 <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">
381                     February 22, 2013 at 19:54</a>&nbsp;&nbsp;<a class="comment-edit-link" href="http://juplo.de/wp-admin/comment.php?action=editcomment&amp;c=51" title="Edit comment">(Edit)</a>              </div>
382   
383                 <p>Your welcom.<br />
384                   Send it!</p>
385   
386                 <div class="reply">
387                   <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>
388               </div>
389               <ul class="children">
390                 <li class="comment odd alt depth-3 parent" id="comment-54">
391                   <div id="div-comment-54" class="comment-body">
392                     <div class="comment-author vcard">
393                       <cite class="fn">Victor</cite> <span class="says">says:</span>            </div>
394   
395                     <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">
396                         February 25, 2013 at 15:28</a>&nbsp;&nbsp;<a class="comment-edit-link" href="http://juplo.de/wp-admin/comment.php?action=editcomment&amp;c=54" title="Edit comment">(Edit)</a>          </div>
397   
398                     <p>Where to? Is there a github repo?</p>
399   
400                     <div class="reply">
401                       <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>
402                   </div>
403                   <ul class="children">
404                     <li class="comment even depth-4" id="comment-55">
405                       <div id="div-comment-55" class="comment-body">
406                         <div class="comment-author vcard">
407                           <cite class="fn">admin</cite> <span class="says">says:</span>         </div>
408   
409                         <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">
410                             February 25, 2013 at 20:05</a>&nbsp;&nbsp;<a class="comment-edit-link" href="http://juplo.de/wp-admin/comment.php?action=editcomment&amp;c=55" title="Edit comment">(Edit)</a>              </div>
411   
412                         <p>There is a private git-Repository.<br />
413                           <a href="http://juplo.de/hibernate4-maven-plugin/source-repository.html"  rel="nofollow">Check the project-documentation!</a></p>
414                         <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>
415   
416                         <div class="reply">
417                           <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>
418                       </div>
419                     </li><!-- #comment-## -->
420                   </ul><!-- .children -->
421                 </li><!-- #comment-## -->
422               </ul><!-- .children -->
423             </li><!-- #comment-## -->
424           </ul><!-- .children -->
425         </li><!-- #comment-## -->
426       </ol>
427   
428       <div class="navigation">
429         <div class="alignleft"></div>
430         <div class="alignright"></div>
431       </div>
432   
433   
434       <div id="respond">
435   
436         <h3>Leave a Reply</h3>
437   
438         <div id="cancel-comment-reply">
439           <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>
440         </div>
441   
442   
443         <form action="http://juplo.de/wp-comments-post.php" method="post" id="commentform">
444   
445   
446           <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&amp;redirect_to=http%3A%2F%2Fjuplo.de%2Fhibernate4-maven-plugin-a-simple-plugin-for-generating-a-database-schema-from-hibernate-4-mapping-annotations%2F&amp;_wpnonce=09e5cb501d" title="Log out of this account">Log out &raquo;</a></p>
447   
448   
449           <!--<p><small><strong>XHTML:</strong> You can use these tags: <code>&lt;a href=&quot;&quot; title=&quot;&quot;&gt; &lt;abbr title=&quot;&quot;&gt; &lt;acronym title=&quot;&quot;&gt; &lt;b&gt; &lt;blockquote cite=&quot;&quot;&gt; &lt;cite&gt; &lt;code&gt; &lt;del datetime=&quot;&quot;&gt; &lt;em&gt; &lt;i&gt; &lt;q cite=&quot;&quot;&gt; &lt;strike&gt; &lt;strong&gt; </code></small></p>-->
450   
451           <p><textarea name="comment" id="comment" cols="58" rows="10" tabindex="4"></textarea></p>
452   
453           <p><input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" />
454             <input type='hidden' name='comment_post_ID' value='34' id='comment_post_ID' />
455             <input type='hidden' name='comment_parent' id='comment_parent' value='0' />
456           </p>
457           <input type="hidden" id="_wp_unfiltered_html_comment_disabled" name="_wp_unfiltered_html_comment_disabled" value="2cfe5768bb" /><script>(function() {
458       if (window === window.parent) {
459         document.getElementById('_wp_unfiltered_html_comment_disabled').name = '_wp_unfiltered_html_comment';
460       }
461     })();</script>
462           <p style="display: none;"><input type="hidden" id="akismet_comment_nonce" name="akismet_comment_nonce" value="18eb674233" /></p>
463         </form>
464       </div>
465     </article>
466     <aside layout:fragment="marginalcontent">
467       <div id="secondary" class="widget-area" role="complementary">
468         <aside id="archives" class="widget">
469           <h1 class="widget-title">Archives</h1>
470           <ul>
471             <li><a href='http://juplo.de/2013/10/' title='October 2013'>October 2013</a></li>
472             <li><a href='http://juplo.de/2013/08/' title='August 2013'>August 2013</a></li>
473             <li><a href='http://juplo.de/2013/01/' title='January 2013'>January 2013</a></li>
474             <li><a href='http://juplo.de/2012/11/' title='November 2012'>November 2012</a></li>
475           </ul>
476         </aside>
477         <aside id="categories" class="widget">
478           <h1 class="widget-title">Most Used Categories</h1>
479           <ul>
480             <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>
481             <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>
482             <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>
483             <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>
484             <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>
485             <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>
486           </ul>
487         </aside>
488         <aside id="search" class="widget widget_search">
489           <h1 class="widget-title">Search</h1>
490           <form role="search" method="get" id="searchform" class="searchform" action="http://juplo.de/">
491             <div>
492               <label class="screen-reader-text" for="s">Search for:</label>
493               <input type="text" value="" name="s" id="s" />
494               <input type="submit" id="searchsubmit" value="Search" />
495             </div>
496           </form>
497         </aside>
498       </div><!-- #secondary .widget-area -->
499       <div id="tertiary" class="widget-area" role="supplementary">
500       </div><!-- #tertiary .widget-area -->
501     </aside>
502   </body>
503 </html>