The <abatorContext> element is used to specify the environment for generating a set of objects. Child elements are used to specify the database to connect to, the type of objects to generate, and the tables to introspect. Multiple <abatorContext> elements can be listed inside an <abatorConfiguration> element to allow generating objects from different databases, or with different generation parameters, in the same run of Abator.
None
Attribute | Description | ||||||
---|---|---|---|---|---|---|---|
defaultModelType |
This property is used to set the default for generated model types.
The model type defines how Abator will generate domain classes. With some
model types Abator will generate a single domain class for each table,
with others Abator may generate different classes depending on the structure
of the table. The property supports these values:
|
||||||
id | A unique identifier for this context. This value will be used in some error messages. | ||||||
generatorSet |
This property is used to select different sets of code generators,
with different behaviors.
The property supports these values:
|
This table lists the properties that can be specified with the <property> child element:
Property Name | Property Values |
---|---|
suppressTypeWarnings | If true, then Abator will add an annotation to any method
that uses a non-parameterized type to suppress compiler type warnings.
This is useful if you are using the Legacy or Java2 generator sets, but are
compiling the generated objects with a JSE 5.0 compiler. In that situation,
the Abator generated code would generate many compiler warnings if the
annotation is not allowed. This property is not needed and will have
no effect when using the Java5 generator set.
The default value is false. |
beginningDelimiter | The value to use as the beginning identifier delimiter for SQL identifiers that
require delimiters. Abator will automatically delimit SQL identifiers if the
identifier contains a space. Abator will also delimit SQL identifiers if
specifically requested in a <table> or <columnOverride> configuration.
The default value is double quotes ("). |
endingDelimiter | The value to use as the ending identifier delimiter for SQL identifiers that
require delimiters. Abator will automatically delimit SQL identifiers if the
identifier contains a space. Abator will also delimit SQL identifiers if
specifically requested in a <table> or <columnOverride> configuration.
The default value is double quotes ("). |