Full name:
org.codehaus.mojo:openjpa-maven-plugin:1.2:sql
Description:
Attributes:
| Name | Type | Since | Description |
|---|---|---|---|
| classes | File | 1.0 | Location where persistence-enabled classes are
located. Default value is: ${project.build.outputDirectory}. |
| forceMojoExecution | boolean | 1.0 | Setting this parameter to true will force the
execution of this mojo, even if it would get skipped usually. Default value is: false. |
| Name | Type | Since | Description |
|---|---|---|---|
| action | String | 1.0 | Argument to specify the action to take on each class. The available
actions are: buildSchema, validate |
| connectionDriverName | String | 1.0 | This setting can be used to override any openjpa.ConnectionDriverName set in the persistence.xml. It can also be used if the persistence.xml contains no connection information at all. Sample: <connectionDriverName>com.mchange.v2.c3p0.ComboPooledDataSource</connectionDriverName> |
| connectionProperties | String | 1.0 | Used to define the credentials or any other connection properties. Sample:<connectionProperties> driverClass=com.mysql.jdbc.Driver, jdbcUrl=jdbc:mysql://localhost/mydatabase, user=root, password=, minPoolSize=5, acquireRetryAttempts=3, maxPoolSize=20 </connectionProperties> |
| excludes | String | 1.0 | Comma separated list of excludes to scan searchDir to pass to the
jobs. This option may be used to stop OpenJPA tasks from scanning
non-JPA classes (which usually leads to warnings such as "Type xxx
has no metadata") |
| includes | String | 1.0 | Comma separated list of includes to scan searchDir to pass to the
jobs. This may be used to restrict the OpenJPA tasks to e.g. a
single package which contains all the entities. Default value is: **/*.class. |
| modifyDatabase | boolean | 1.0 | Use this option to write the planned schema modifications to the
database. If this is set, the sqlFile setting (if any) will be
ignored. Default value is: false. |
| persistenceXmlFile | String | 1.0 | Used if a non-default file location for the persistence.xml should
be used If not specified, the default one in
META-INF/persistence.xml will be used. Please note that this is not
a resource location but a file path! |
| skip | boolean | 1.0 | When true, skip the execution. Default value is: false. |
| sqlAction | String | 1.0 | The action to take for generating the SQL. Actions can be composed
in a comma-separated list of one of the following items:
Default value is: build. |
| sqlFile | File | 1.0 | Use this option to write the planned schema modifications to a SQL
script. Combine this with a schemaAction of "build" to generate a
script that recreates the schema for the current mappings, even if
the schema already exists. Default value is: ${project.build.directory}/database.sql. |
| toolProperties | Properties | 1.0 | Additional properties passed to the OpenJPA tools. |
This setting can be used to override any openjpa.ConnectionDriverName set in the persistence.xml. It can also be used if the persistence.xml contains no connection information at all.
Sample:
<connectionDriverName>com.mchange.v2.c3p0.ComboPooledDataSource</connectionDriverName>
Used to define the credentials or any other connection properties.
Sample:<connectionProperties> driverClass=com.mysql.jdbc.Driver, jdbcUrl=jdbc:mysql://localhost/mydatabase, user=root, password=, minPoolSize=5, acquireRetryAttempts=3, maxPoolSize=20 </connectionProperties>
skip: