@Mojo(name="schema", defaultPhase=PROCESS_CLASSES, requiresDependencyResolution=COMPILE, threadSafe=true) public class OpenJpaSchemaMojo extends AbstractOpenJpaMappingToolMojo
Modifier and Type | Field and Description |
---|---|
protected static String |
OPTION_SCHEMA_ACTION
used for passing the schemaAction parameter to the mapping tool
|
protected static String |
OPTION_SCHEMA_FILE
used for passing the schemaFile parameter to the mapping tool
|
protected String |
schemaAction
The action to take on the schema.
|
protected File |
schemaFile
Use this option to write the planned schema to an XML document
rather than modify the database.
|
action, OPTION_ACTION
classes, compileClasspathElements, OPTION_CONNECTION_DRIVER_NAME, OPTION_CONNECTION_PROPERTIES, OPTION_PROPERTIES, OPTION_PROPERTIES_FILE, project, workDir
Constructor and Description |
---|
OpenJpaSchemaMojo() |
Modifier and Type | Method and Description |
---|---|
protected Options |
getOptions()
Get the options for the various OpenJPA tools.
|
execute
createOptions, extendRealmClasspath, findEntityClassFiles, getClasspathElements, getEntityClasses, getFilePaths, skipMojo
@Parameter(defaultValue="add") protected String schemaAction
protected static final String OPTION_SCHEMA_ACTION
@Parameter(defaultValue="${project.build.directory}/schema.xml") protected File schemaFile
protected static final String OPTION_SCHEMA_FILE
protected Options getOptions() throws org.apache.maven.plugin.MojoExecutionException
AbstractOpenJpaMojo
getOptions
in class AbstractOpenJpaMojo
org.apache.maven.plugin.MojoExecutionException
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.