setPackageName

getDirectory

The file to output the generated code to, or null for
the current directory. If the directory matches the package, it will
be used. Otherwise, the package structure will be created under
this directory.

setDirectory

The file to output the generated code to, or null for
the current directory. If the directory matches the package, it will
be used. Otherwise, the package structure will be created under
this directory.

getUseSchemaName

public boolean getUseSchemaName()

Return true if the schema name will be included in the generated
class name for each table. Defaults to false.

setUseSchemaName

public void setUseSchemaName(boolean useSchema)

Set whether the schema name will be included in the generated
class name for each table. Defaults to false.

getUseForeignKeyName

public boolean getUseForeignKeyName()

Return whether the foreign key name will be used to generate
relation names. Defaults to false.

setUseForeignKeyName

public void setUseForeignKeyName(boolean useFK)

Set whether the foreign key name will be used to generate
relation names. Defaults to false.

getNullableAsObject

public boolean getNullableAsObject()

Return whether even nullable columns will be mapped to wrappers
rather than primitives. Defaults to false.

setNullableAsObject

public void setNullableAsObject(boolean nullAsObj)

Set whether even nullable columns will be mapped to wrappers
rather than primitives. Defaults to false.

getBlobAsObject

public boolean getBlobAsObject()

Whether to reverse-map blob columns as containing serialized Java
objects, rather than the default of using a byte[] field.

setBlobAsObject

public void setBlobAsObject(boolean blobAsObj)

Whether to reverse-map blob columns as containing serialized Java
objects, rather than the default of using a byte[] field.

recordCode

output - if null, then perform the write directly
to the filesystem; otherwise, populate the
specified map with keys as the generated
ClassMapping and values as a
String that contains the generated code

recordMetaData

output - if null, then perform the write directly
to the filesystem; otherwise, populate the
specified map with keys as the generated
ClassMapping and values as a
String that contains the generated code

-inverseRelations/-ir <true/t | false/f>: Set to
false to prevent the creation of inverse 1-many/1-1 relations for
each encountered many-1/1-1 relation.

-detachable/-det <true/t | false/f>: Set to
true to make generated classes detachable.

-discriminatorStrategy/-ds <strategy>: The default
discriminator strategy to place on base classes.

-versionStrategy/-vs <strategy>: The default
version strategy to place on base classes.

-metadata/-md <class | package>: Specify the level the
metadata should be generated at. Defaults to generating a
single package-level metadata file.

-customizerClass/-cc <class name>: The full class
name of a ReverseCustomizer implementation to use to
customize the reverse mapping process. Optional.

-customizerProperties/-cp <properties file or resource>
: The path or resource name of a properties file that will be
passed to the reverse customizer on initialization. Optional.

-customizer/-c.<property name> < property value>
: Arguments like this will be used to configure the bean
properties of the ReverseCustomizer.

-codeFormat/-cf.<property name> < property value>
: Arguments like this will be used to configure the bean
properties of the internal CodeFormat.

Each schema given as an argument will be reverse-mapped into
persistent classes and associated metadata. If no arguments are given,
the database schemas defined by the system configuration will be
reverse-mapped.