2 <!-- Generated by Apache Maven Doxia Site Renderer 1.6 at 2016-03-09 -->
3 <!-- Current: index.html -->
4 <!-- Active: index.html -->
5 <!-- Path: [index.html] -->
6 <!-- Skiplist: [index.html, configuration.html, create-mojo.html, drop-mojo.html, debugging.html, skip.html, force.html, pitfalls.html] -->
9 <title>juplo - Hibernate Maven Plugin – </title>
10 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
11 <link rel="canonical" href="http://juplo.de/hibernate-maven-plugin/index.html"/>
12 <meta name="viewport" content="width=device-width, initial-scale=1" />
13 <link rel="stylesheet" type="text/css" href="/css/base.css" />
14 <style type="text/css">
15 @import '/css/screen.css' screen;
17 <script src="/js/prettify.js"></script>
19 <script src="/js/html5shiv.js"></script>
22 <link rel="stylesheet" type="text/css" href="/css/ie8.css" />
24 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
26 <body class="menu" onload="prettyPrint()">
27 <div id="page" class="cf">
29 <h1 id="logo"><a href="/" title="Home" class="l">juplo</a></h1>
30 <span id="slogan"><strong>Java</strong> bits from nerds for nerds</span>
34 <strong class="b title">You are here:</strong>
36 <li class="b"><a class="b" href="/">Home</a></li>
37 <li class="b"><a class="b" href="/projects.html">Projects</a></li>
38 <li class="b"><strong class="b">Hibernate Maven Plugin</strong></li>
40 <a class="hide" href="#navigation">Jump to navigation</a>
43 <main class="content cf">
44 <article id="content" class="main">
45 <header><h1></h1></header>
50 <h1>Hibernate Maven Plugin</h1>
53 <h2><a name="A_simple_Plugin_for_generating_a_Database-Schema_from_Hibernate_Mapping-Annotations"></a>A simple Plugin for generating a Database-Schema from Hibernate Mapping-Annotations</h2>
56 The <b>hibernate-maven-plugin</b> is a plugin for generating a database-schema
57 from your Hibernate-Mappings and create or update your database
59 Its main usage is to automatically create and populate a test-database
60 for unit-tests in cooperation with the
61 <a class="externalLink" href="http://mojo.codehaus.org/dbunit-maven-plugin">dbunit-maven-plugin</a>.
65 The plugin was designed with three main goals in mind:
70 <li>It should be easy to use.</li>
72 <li>It should be maximal unlikely, to erase a producation-database by accident.</li>
74 <li>It should not slow down the development cycle.</li>
78 To achieve the first goal, the convention-over-configuration paradigma
79 was applied and the plugin was stuffed with usefull logging-messages.
80 So, if in doubt, just turn on the <a href="./debugging.html">debugging output</a> with the <tt>mvn -X ...</tt>.
84 To achieve the second goal, the precedence in which the configuration
85 locations are consulted was layouted in a way that makes it possible, to
86 prevent overwrites of the wrong database by accident.
90 Last but not least, in order to not slow down the development cycle, the
91 hibernate-maven-plugin only executes the schema-export, if the mapping
92 or the dialect changes (or if you force it to do so).
96 For more information about the inspiration to write this tiny plugin,
97 <a href="/hibernate-maven-plugin-a-simple-plugin-for-generating-a-database-schema-from-hibernate-4-mapping-annotations/">read our blog-article about the hibernate-maven-plugin</a>.
100 <div class="section">
101 <h2><a name="Documentation"></a>Documentation</h2>
106 See <a href="./configuration.html">Configuration Examples</a> for Usage-Explanations
107 and simple examples of how to use this plugin.
111 See <a href="./create-mojo.html">hibernate:create</a>,
112 See <a href="./drop-mojo.html">hibernate:drop</a> and
113 <a href="./plugin-info.html">Plugin Documentation</a> for the full
114 autogenerated documentation. These are mostly configuration-options
115 of the Hibernate-Tools <tt>SchemaExport</tt> and <tt>SchemaUpdate</tt>, that do
116 the work in the background.
120 <div class="section">
121 <h2><a name="Releases"></a>Releases</h2>
125 <li><a class="externalLink" href="http://juplo.de/hibernate-maven-plugin">current version</a></li>
127 <li>2.0.0 (this version)</li>
129 <li><a class="externalLink" href="http://juplo.de/hibernate4-maven-plugin-1.0.5">1.0.5</a></li>
131 <li><a class="externalLink" href="http://juplo.de/hibernate4-maven-plugin-1.0.4">1.0.4</a></li>
133 <li><a class="externalLink" href="http://juplo.de/hibernate4-maven-plugin-1.0.3">1.0.3</a></li>
135 <li><a class="externalLink" href="http://juplo.de/hibernate4-maven-plugin-1.0.2">1.0.2</a></li>
137 <li><a class="externalLink" href="http://juplo.de/hibernate4-maven-plugin-1.0.1">1.0.1</a></li>
139 <li><a class="externalLink" href="http://juplo.de/hibernate4-maven-plugin-1.0">1.0</a></li>
144 <div class="marginal">
147 <a id="navigation"></a>
148 <a class="hide" href="#top" title="Show Content">Jump back to the top of the page</a>
149 <h2 class="nav menu">Section-Menu</h2>
151 <li class="m blog"><a href="/blog/" class="m">Blog</a></li>
152 <li class="m projects"><a href="/projects.html" class="m selected">Projects</a></li>
153 <li class="m about"><a href="/about.html" class="m">About</a></li>
155 <h2 class="nav submenu">
156 <span class="s">Submenu for section</span>
157 <a class="s selected" href="/projects.html">Projects</a>
159 <ul id="submenu" class="s">
161 <strong class="s">Hibernate Maven Plugin</strong>
162 <ul class="s active">
164 <a href="configuration.html" class="s" title="Configuration Examples">Configuration Examples</a>
167 <a href="create-mojo.html" class="s" title="Goal: CREATE">Goal: CREATE</a>
170 <a href="drop-mojo.html" class="s" title="Goal: DROP">Goal: DROP</a>
173 <a href="debugging.html" class="s" title="Enable Debug-Output">Enable Debug-Output</a>
176 <a href="skip.html" class="s" title="Skipping Execution">Skipping Execution</a>
179 <a href="force.html" class="s" title="Force Exceution">Force Exceution</a>
182 <a href="pitfalls.html" class="s" title="Known Pitfalls (FAQ)">Known Pitfalls (FAQ)</a>
185 <a href="project-info.html" class="s" title="Project Information">Project Information</a>
188 <a href="project-reports.html" class="s" title="Project Reports">Project Reports</a>
196 <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
197 <img class="poweredBy" alt="Built by Maven" src="./images/logos/maven-feather.png" />
204 <ul id="footerlinks">
205 <li class="f" id="copyright">© <strong>mo</strong> 2016
207 <li class="f"><a class="f" href="/impressum.html">Impressum</a></li>
208 <li class="f about"><a class="f" href="/about.html">About</a></li>
212 <script type="text/javascript"><!--//--><![CDATA[//><!--
213 var _gaq = _gaq || [];
214 _gaq.push(['_setAccount', 'UA-571104-3']);
215 _gaq.push(['_trackPageview']);
217 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
218 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
219 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);