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