|
Properties Reader
Columns are specified in the properties file using the following syntax:
-
<ClassName>.column.<index>=<propertyName>
<Type> <Null Modifiers> [<Relationship Modifier>]
Where the null modifiers can be one of: -
NULL | NOT NULL | PRIMARY KEY
and the relationship modifier can be one of : -
ASSOCIATE | ASSOCIATES | DEPENDENT | DEPENDENTS <ClassName>
For example: -
readColumn.House.0=houseKey INT
PRIMARY KEY
readColumn.House.1=postmanKey INT NULL ASSOCIATES Person
readColumn.House.2=houseType CHAR(2) NOT NULL
readColumn.House.3=number INT
NULL
More information on Types, Primary Keys, Foreign Keys, Enumerated Types
and Optimistic locks can be found in their corresponding sections.
Columns can be marked as read only, using the following syntax
<ClassName>.<propertyName>.readOnly=true
Columns can be marked as pseudo columns. This means that they are not
to be persisted using
the
following syntax: -
<ClassName>.<propertyName>.pseudo=true
By default columns are bidirectional. Columns
can be marked as unidirectional. This means that corresponding
methods are added to the target object of a relationship, using
the
following syntax:
-
<ClassName>.<propertyName>.unidirectional=true |