Powered by SmartDoc

Overview

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.

Syntax

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:

data
The data portion of the schema.
property
The property portion of the schema.
class
The class portion of the schema.

However, currently the JDBC generator only takes data or property (class is not used).

Attributes

The JDBC generator supports attributes for extension syntax as follows:

attributes
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