Package org.apache.openjpa.tools.maven
Class AbstractOpenJpaMappingToolMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.openjpa.tools.maven.AbstractOpenJpaMojo
org.apache.openjpa.tools.maven.AbstractOpenJpaMappingToolMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
OpenJpaSchemaMojo
,OpenJpaSqlMojo
Processes Application model classes and generate the DDL by running the
OpenJPA MappingTool.
We have to split the generation of the SQL files and the mapping info
into 2 separate mojos, since the MappingTool struggles to generate both
in one step.
- Since:
- 1.0
- Version:
- $Id$
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
Argument to specify the action to take on each class.protected static final String
used for passing the action parameter to the mapping toolFields inherited from class org.apache.openjpa.tools.maven.AbstractOpenJpaMojo
classes, compileClasspathElements, OPTION_CONNECTION_DRIVER_NAME, OPTION_CONNECTION_PROPERTIES, OPTION_PROPERTIES, OPTION_PROPERTIES_FILE, project, workDir
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.openjpa.tools.maven.AbstractOpenJpaMojo
createOptions, extendRealmClasspath, findEntityClassFiles, getClasspathElements, getEntityClasses, getFilePaths, getOptions, skipMojo
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
action
Argument to specify the action to take on each class. The available actions are: buildSchema, validate -
OPTION_ACTION
used for passing the action parameter to the mapping tool- See Also:
-
-
Constructor Details
-
AbstractOpenJpaMappingToolMojo
public AbstractOpenJpaMappingToolMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
- See Also:
-
Mojo.execute()
-