| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <!-- Generated by Apache Maven Doxia Site Renderer 1.8.1 from src/site/apt/index.apt at 06 Sep 2020 22:01 CEST --> |
| <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
| <head> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
| <title>OpenJPA Maven Plugin – Introduction</title> |
| <style type="text/css" media="all"> |
| @import url("./css/maven-base.css"); |
| @import url("./css/maven-theme.css"); |
| @import url("./css/site.css"); |
| </style> |
| <link rel="stylesheet" href="./css/print.css" type="text/css" media="print" /> |
| <meta name="author" content="Rahul Thakur, Mark Struberg" /> |
| <meta name="date" content="November 29, 2010" /> |
| <meta http-equiv="Content-Language" content="en" /> |
| |
| </head> |
| <body class="composite"> |
| <div id="banner"> |
| <div id="bannerLeft"> |
| OpenJPA |
| </div> |
| <div class="clear"> |
| <hr/> |
| </div> |
| </div> |
| <div id="breadcrumbs"> |
| <div class="xleft"> |
| <span id="publishDate">Last Published: 06 Sep 2020 22:01 CEST</span> |
| | <span id="projectVersion">Version: 3.1.3-SNAPSHOT</span> |
| </div> |
| <div class="xright"> </div> |
| <div class="clear"> |
| <hr/> |
| </div> |
| </div> |
| <div id="leftColumn"> |
| <div id="navcolumn"> |
| <h5>Overview</h5> |
| <ul> |
| <li class="none"><strong>Introduction</strong></li> |
| <li class="none"><a href="usage.html" title="Usage">Usage</a></li> |
| <li class="none"><a href="plugin-info.html" title="Goals">Goals</a></li> |
| </ul> |
| <h5>Examples</h5> |
| <ul> |
| <li class="none"><a href="examples/enhance.html" title="Enhance">Enhance</a></li> |
| <li class="none"><a href="examples/sql.html" title="SQL">SQL</a></li> |
| <li class="none"><a href="examples/schema.html" title="Schema">Schema</a></li> |
| <li class="none"><a href="examples/testenhance.html" title="TestEnhance">TestEnhance</a></li> |
| </ul> |
| <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"> |
| <img class="poweredBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /> |
| </a> |
| </div> |
| </div> |
| <div id="bodyColumn"> |
| <div id="contentBox"> |
| <div class="section"> |
| <h2><a name="OpenJPA_Maven_Plugin"></a>OpenJPA Maven Plugin</h2> |
| <p>This plugin provides useful tasks for building and maintaining an OpenJPA project with maven. All goals work on a given set of JPA entities.</p> |
| <div class="section"> |
| <h3><a name="Goals_Overview"></a>Goals Overview</h3> |
| <ul> |
| <li><a href="#enhance-mojo.html">openjpa:enhance</a> Enhance the entity classes with persistence functionality.</li> |
| <li><a href="#sql-mojo.html">openjpa:sql</a> Create a file with SQL statements, with e.g. CREATE TABLE statements</li> |
| <li><a href="#schema-mojo.html">openjpa:schema</a> Create a file which contains the schema mapping XML</li> |
| <li><a href="#test-enhance-mojo.html">openjpa:test-enhance</a> Enhance the entity classes in the test classpath with persistence functionality.</li></ul></div> |
| <div class="section"> |
| <h3><a name="Usage"></a>Usage</h3> |
| <p>Instructions on how to use the OpenJPA Maven Plugin can be found on the <a href="#usage.html">usage page</a>.</p></div> |
| <div class="section"> |
| <h3><a name="Examples"></a>Examples</h3> |
| <ul> |
| <li><a href="#examplesenhance.html"> JPA enhancement example.</a></li> |
| <li><a href="#examplessql.html"> SQL maintenance strategies.</a></li> |
| <li><a href="#examplesschema.html"> Schema mapping example.</a></li> |
| <li><a href="#examplestestenhance.html"> JPA enhancement for test classes example.</a></li> |
| <li><a href="#examplescredentials.html"> Manually setting.the credentials for accessing the database at build time </a></li></ul></div></div> |
| </div> |
| </div> |
| <div class="clear"> |
| <hr/> |
| </div> |
| <div id="footer"> |
| <div class="xright"> |
| Copyright © 2011–2020 <a href="http://www.apache.org">Apache Software Foundation</a>. |
| All rights reserved. </div> |
| <div class="clear"> |
| <hr/> |
| </div> |
| </div> |
| </body> |
| </html> |