The Relaxer Java generator supports extension syntaxes that may be used to embed in a RELAX schemas.
Special attributes can be embeded in a RELAX schema.
If Relaxer finds these special attributes, it generates code code for definition of the attributes.
The namespace is a "http://www.relaxer.org/xmlns/relaxer/sql".
Usually sql
is used for a prefix to represent namespace
"http://www.relaxer.org/xmlns/relaxer/sql",
while any prefix may be used.
Generary, there are three targets targets:
However, currently the JDBC generator only takes data
or
property
(class
is not used).
The JDBC generator supports attributes for extension syntax as follows:
datatype
primary
unique
notNull
columnName
readonly
transient
attribute | target | function |
---|---|---|
datatype | data | datatype name |
primary | property | primary key constraint |
unique | property | unique constraint |
notNull | property | not null constraint |
columnName | property | column name |
readonly | property | read only |
transient | property | transient |