Full name:
org.apache.torque:torque-maven-plugin:3.3.1-SNAPSHOT:om
Description:
Attributes:
generate-sources
.Name | Type | Since | Description |
---|---|---|---|
schemaDir | String |
- |
The path to the directory where the schema files are located in. |
schemaIncludes | String |
- |
The schema files which should be included in generation (in
ant-style notation). |
targetDatabase | String |
- |
The database type (e.g. mysql, oracle, ...) for the generated
persistence classes, |
Name | Type | Since | Description |
---|---|---|---|
addGetByNameMethod | boolean |
- |
If true, Torque adds methods to get database fields by
name/position. |
addRetrievableInterface | boolean |
- |
If true, the data objects will implement a Retrievable interface. |
addSaveMethod | boolean |
- |
Determines whether save()-Methods should be added to the data
objects. |
addTimeStamp | boolean |
- |
Determines whether a time stamp and a serialVersionUID will be
added to generated objects. |
baseOutputDir | String |
- |
The directory where the sources for the base persistence classes
will be generated. |
basePrefix | String |
- |
The prefix for the base classes. |
baseReportFile | String |
- |
The location where the report file for the base persistence classes
will be generated. |
beanExtendsClass | String |
- |
A fully qualified class name that the generated base bean class
will extend. |
beanSuffix | String |
- |
The suffix for the class name of the bean classes. |
complexObjectModel | boolean |
- |
If true, Torque generates data objects with collection support and
methods to easily retrieve foreign key relationships. |
correctGetters | boolean |
- |
If true, Torque generates isXXX getter methods for boolean columns. |
outputDir | String |
- |
The directory in which the sources for the non-base persistence
classes will be generated. |
reportFile | String |
- |
The location where the report file for the non-base persistence
classes will be generated. |
contextPropertiesPath | String |
- |
The location where the context property file for velocity will be
generated. |
schemaExcludes | String |
- |
The schema files which should be excluded in generation (in
ant-style notation). |
enableJava5Features | boolean |
- |
Whether Java5 generics and iteration shorthand should be used in
generated code. |
generateBeans | boolean |
- |
If true, Torque generates a bean object for each data object, plus
methods to convert data objects to beans and vice versa. |
objectIsCaching | boolean |
- |
If true, Torque generates data objects that cache their foreign key
relationships. |
retrievableInterface | String |
- |
The fully qualified class name of the retrievable interface to be
implemented by the data objects. |
runOnlyOnSchemaChange | boolean |
- |
Determines if this task should run only if the schema has changed. |
saveException | String |
- |
Defines which Exception should be thrown by the Object.save()
method. |
silentDbFetch | boolean |
- |
If true and objectIsCaching is true, Torque silently fetches
foreign key relation collections if the collection is not yet
initialized. |
sqlDbMap | String |
- |
The path to the properties file containing the mapping sql file
-> target database. |
subpackageBase | String |
- |
The subpackage (relative to targetPackage ) where
Torque will put the generated BaseObject, BasePeer, (and
BaseManager, if they are generated at all) Java classes. If not
set, the Base classes will be generated in
targetPackage . |
subpackageBaseBean | String |
- |
The subpackage (relative to targetPackage ) where
Torque will put the generated BaseBean Java classes, if they are
generated at all. |
subpackageBean | String |
- |
The subpackage (relative to targetPackage ) where
Torque will put the generated JavaBean classes, if they are
generated at all. |
subpackageManager | String |
- |
The subpackage (relative to targetPackage ) where
Torque will put the generated Java Manager classes, if they are
generated at all. If not set, the Manager classes will be generated
in targetPackage . |
subpackageMap | String |
- |
The subpackage (relative to targetPackage where Torque
will put the generated Java classes for the database map. |
subpackageObject | String |
- |
The subpackage (relative to targetPackage ) where
Torque will put the generated data object Java classes. If not set,
the object classes will be generated in targetPackage . |
subpackagePeer | String |
- |
The subpackage (relative to targetPackage ) where
Torque will put the generated Peer Java classes. If not set, the
Peer classes will be generated in targetPackage . |
targetPackage | String |
- |
The target package for the generated classes. |
templatePath | String |
- |
The base path where the templates are read from, if they are not
read from the classpath. |
useClasspath | boolean |
- |
Whether the templates should be loaded from the classpath. |
useManagers | boolean |
- |
If true, Torque will generate Manager classes that use JCS for
caching. |
userContextProperties | Map |
- |
A map where all user-defined context properties can be set.
Overrides all other mojo configuration settings which are mapped to
context properties. |
boolean
No
true
boolean
No
false
boolean
No
true
boolean
No
true
java.lang.String
No
${project.build.directory}/generated-sources/torque
java.lang.String
No
Base
java.lang.String
No
../../torque/report.${project.artifact.artifactId}.om.base.generation
java.lang.String
No
java.lang.String
No
Bean
boolean
No
true
boolean
No
false
java.lang.String
No
${project.build.sourceDirectory}/../generated-java
java.lang.String
No
../../../target/torque/report.${project.artifact.artifactId}.om.generation
java.lang.String
No
${project.build.directory}/torque/context.om.properties
java.lang.String
No
id-table-schema.xml
boolean
No
false
boolean
No
false
boolean
No
true
java.lang.String
No
org.apache.turbine.om.Retrievable
boolean
No
true
java.lang.String
No
Exception
java.lang.String
Yes
${basedir}/src/main/torque/schema
java.lang.String
Yes
*schema.xml
boolean
No
true
java.lang.String
No
${project.build.directory}/torque/sqldbmap.properties
targetPackage
) where
Torque will put the generated BaseObject, BasePeer, (and
BaseManager, if they are generated at all) Java classes. If not
set, the Base classes will be generated in
targetPackage
.java.lang.String
No
targetPackage
) where
Torque will put the generated BaseBean Java classes, if they are
generated at all.java.lang.String
No
bean
targetPackage
) where
Torque will put the generated JavaBean classes, if they are
generated at all.java.lang.String
No
bean
targetPackage
) where
Torque will put the generated Java Manager classes, if they are
generated at all. If not set, the Manager classes will be generated
in targetPackage
.java.lang.String
No
targetPackage
where Torque
will put the generated Java classes for the database map.java.lang.String
No
map
targetPackage
) where
Torque will put the generated data object Java classes. If not set,
the object classes will be generated in targetPackage
.java.lang.String
No
targetPackage
) where
Torque will put the generated Peer Java classes. If not set, the
Peer classes will be generated in targetPackage
.java.lang.String
No
java.lang.String
Yes
java.lang.String
No
torque.generated
java.lang.String
No
${basedir}/src/main/torque/templates
boolean
No
true
boolean
No
false
java.util.Map
No