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