Full name:
io.github.divinespear:jpa-schema-maven-plugin:0.2.1:generate
Description:
Attributes:
Name | Type | Since | Description |
---|---|---|---|
databaseAction | String | - | schema generation action for database
support value is none, create, drop, drop-and-create, or create-or-extend-tables. create-or-extend-tables only support for EclipseLink with database target. Default value is: none. |
format | boolean | - | generate as formatted Default value is: false. User property is: jpa-schema.generate.format. |
persistenceUnitName | String | - | unit name of persistence.xml Default value is: default. |
persistenceXml | String | - | location of persistence.xml file
Note for Hibernate DOES NOT SUPPORT custom location. (SchemaExport support it, but JPA 2.1 schema generator does NOT.) Default value is: META-INF/persistence.xml. |
scanTestClasses | boolean | - | scan test classes Default value is: false. User property is: jpa-schema.generate.scan-test-classes. |
scriptAction | String | - | schema generation action for script
support value is none, create, drop, or drop-and-create. Default value is: none. |
skip | boolean | - | skip schema generation Default value is: false. User property is: jpa-schema.generate.skip. |
Name | Type | Since | Description |
---|---|---|---|
createOutputFileName | String | - | generated create script name
REQUIRED for scriptAction is one of create, or drop-and-create. Default value is: create.sql. |
createSourceFile | File | - | create source file path.
REQUIRED for createSourceMode is one of script, metadata-then-script, or script-then-metadata. |
createSourceMode | String | - | specifies whether the creation of database artifacts is to occur on
the basis of the object/relational mapping metadata, DDL script, or
a combination of the two.
support value is metadata, script, metadata-then-script, or script-then-metadata. Default value is: metadata. |
databaseMajorVersion | Integer | - | database major version for emulate database connection. this should
useful for script-only action.
|
databaseMinorVersion | Integer | - | database minor version for emulate database connection. this should
useful for script-only action.
|
databaseProductName | String | - | database product name for emulate database connection. this should
useful for script-only action.
|
dropOutputFileName | String | - | generated drop script name
REQUIRED for scriptAction is one of drop, or drop-and-create. Default value is: drop.sql. |
dropSourceFile | File | - | drop source file path.
REQUIRED for dropSourceMode is one of script, metadata-then-script, or script-then-metadata. |
dropSourceMode | String | - | specifies whether the dropping of database artifacts is to occur on
the basis of the object/relational mapping metadata, DDL script, or
a combination of the two.
support value is metadata, script, metadata-then-script, or script-then-metadata. Default value is: metadata. |
jdbcDriver | String | - | jdbc driver class name
default is declared class name in persistence xml. and Remember, |
jdbcPassword | String | - | jdbc connection password
default is declared password in persistence xml. If your account has no password (especially local file-base, like Apache Derby, H2, etc...), it can be omitted. |
jdbcUrl | String | - | jdbc connection url
default is declared connection url in persistence xml. |
jdbcUser | String | - | jdbc connection username
default is declared username in persistence xml. |
lineSeparator | String | - | line separator for generated schema file.
support value is one of CRLF (windows default), LF (*nix, max osx), and CR (classic mac), in case-insensitive. default value is system property line.separator. if JVM cannot detect line.separator, then use LF by git core.autocrlf handling. |
outputDirectory | File | - | output directory for generated ddl scripts
REQUIRED for scriptAction is one of create, drop, or drop-and-create. Default value is: ${project.build.directory}/generated-schema. |
packageToScan | List | - | list of package name for scan entity classes
REQUIRED for project without persistence.xml |
properties | Map | - | JPA vendor specific properties. |
vendor | JpaSchemaGeneratorMojo$Vendor | - | JPA vendor name or class name of vendor's
PersistenceProvider implemention.
vendor name is one of
REQUIRED for project without persistence.xml |
REQUIRED for scriptAction is one of create, or drop-and-create.
REQUIRED for createSourceMode is one of script, metadata-then-script, or script-then-metadata.
support value is metadata, script, metadata-then-script, or script-then-metadata.
support value is none, create, drop, drop-and-create, or create-or-extend-tables.
create-or-extend-tables only support for EclipseLink with database target.
REQUIRED for scriptAction is one of drop, or drop-and-create.
REQUIRED for dropSourceMode is one of script, metadata-then-script, or script-then-metadata.
support value is metadata, script, metadata-then-script, or script-then-metadata.
default is declared class name in persistence xml.
and Remember, No Russian you MUST configure jdbc
driver as plugin's dependency.
default is declared password in persistence xml.
If your account has no password (especially local file-base, like Apache Derby, H2, etc...), it can be omitted.
default is declared connection url in persistence xml.
default is declared username in persistence xml.
support value is one of CRLF (windows default), LF (*nix, max osx), and CR (classic mac), in case-insensitive.
default value is system property line.separator. if JVM cannot detect line.separator, then use LF by git core.autocrlf handling.
REQUIRED for scriptAction is one of create, drop, or drop-and-create.
REQUIRED for project without persistence.xml
Note for Hibernate DOES NOT SUPPORT custom location. (SchemaExport support it, but JPA 2.1 schema generator does NOT.)
support value is none, create, drop, or drop-and-create.
skip:
vendor name is one of
REQUIRED for project without persistence.xml