<xs:element name="property"><xs:annotation><xs:documentation>A generic property used by other elements.</xs:documentation></xs:annotation><xs:complexType><xs:attribute name="name" use="required" type="xs:string"/><xs:attribute name="value" use="required" type="xs:string"/></xs:complexType></xs:element>
<xs:element name="db-attribute"><xs:annotation><xs:documentation>A database column.</xs:documentation></xs:annotation><xs:complexType><xs:attribute name="isMandatory" type="xs:boolean"/><xs:attribute name="isPrimaryKey" type="xs:boolean"><xs:annotation><xs:documentation>If true, the value of attribute is unique and used as a primary key identifier.</xs:documentation></xs:annotation></xs:attribute><xs:attribute name="isGenerated" use="optional" type="xs:boolean"/><xs:attribute name="length" type="xs:integer"/><xs:attribute name="name" use="required" type="xs:string"/><xs:attribute name="scale" type="xs:integer"/><xs:attribute name="type" use="required" type="xs:string"/></xs:complexType></xs:element>
Used to install the Automatic Sequence/Key Generation facility for db-entity. This feature is intended for use with simple (non-compound) integral primary keys.
<xs:element name="db-key-generator"><xs:annotation><xs:documentation>Used to install the Automatic Sequence/Key Generation facility for db-entity. This feature is intended for use with simple (non-compound) integral primary keys.</xs:documentation></xs:annotation><xs:complexType><xs:sequence><xs:element name="db-generator-type" type="xs:string"><xs:annotation><xs:documentation>Specifies the Key Generation Method that will be employed 'ORACLE' - use Oracle's SEQUENCE 'NAMED_SEQUENCE_TABLE' - use USER designated SEQUENCE TABLE. User specifies the name of a DBMS Table with the schema (sequence INT) which will be used to hold sequence values (not supported yet)</xs:documentation></xs:annotation></xs:element><xs:element minOccurs="0" name="db-generator-name" type="xs:string"><xs:annotation><xs:documentation>For db-generator-type ORACLE this is the name of the ORACLE SEQUENCE to use. The SEQUENCE is assumed to already exist in the Database. If this is db-generator-type NAMED_SEQUENCE_TABLE Key Generation, this specifies the name of the SEQUENCE TABLE to use. The NAMED_SEQUENCE_TABLE is assumed to already exist in the database.</xs:documentation></xs:annotation></xs:element><xs:element minOccurs="0" name="db-key-cache-size" type="xs:integer"><xs:annotation><xs:documentation>Size of key cache. For db-generator-type ORACLE , this value MUST match the Oracle SEQUENCE INCREMENT value. If there is a mismatch between this value and the Oracle SEQUENCE INCREMENT value, then there will likely be duplicate key problems. For db-generator-type NAMED_SEQUENCE_TABLE , this tells how many keys the Container will fetch in a single DBMS call.</xs:documentation></xs:annotation></xs:element></xs:sequence></xs:complexType></xs:element>
Specifies the Key Generation Method that will be employed'ORACLE' - use Oracle's SEQUENCE'NAMED_SEQUENCE_TABLE' - use USER designated SEQUENCE TABLE. User specifies the name of a DBMS Table with the schema (sequence INT) which will be used to hold sequence values (not supported yet)
Diagram
Type
xs:string
Properties
content:
simple
Source
<xs:element name="db-generator-type" type="xs:string"><xs:annotation><xs:documentation>Specifies the Key Generation Method that will be employed 'ORACLE' - use Oracle's SEQUENCE 'NAMED_SEQUENCE_TABLE' - use USER designated SEQUENCE TABLE. User specifies the name of a DBMS Table with the schema (sequence INT) which will be used to hold sequence values (not supported yet)</xs:documentation></xs:annotation></xs:element>
For db-generator-type ORACLE this is the name of the ORACLE SEQUENCE to use. The SEQUENCE is assumed to already exist in the Database.If this is db-generator-type NAMED_SEQUENCE_TABLE Key Generation, this specifies the name of the SEQUENCE TABLE to use. The NAMED_SEQUENCE_TABLE is assumed to already exist in the database.
Diagram
Type
xs:string
Properties
content:
simple
minOccurs:
0
Source
<xs:element minOccurs="0" name="db-generator-name" type="xs:string"><xs:annotation><xs:documentation>For db-generator-type ORACLE this is the name of the ORACLE SEQUENCE to use. The SEQUENCE is assumed to already exist in the Database. If this is db-generator-type NAMED_SEQUENCE_TABLE Key Generation, this specifies the name of the SEQUENCE TABLE to use. The NAMED_SEQUENCE_TABLE is assumed to already exist in the database.</xs:documentation></xs:annotation></xs:element>
Size of key cache. For db-generator-type ORACLE , this value MUST match the Oracle SEQUENCE INCREMENT value. If there is a mismatch between this value and the Oracle SEQUENCE INCREMENT value, then there will likely be duplicate key problems.For db-generator-type NAMED_SEQUENCE_TABLE , this tells how many keys the Container will fetch in a single DBMS call.
Diagram
Type
xs:integer
Properties
content:
simple
minOccurs:
0
Source
<xs:element minOccurs="0" name="db-key-cache-size" type="xs:integer"><xs:annotation><xs:documentation>Size of key cache. For db-generator-type ORACLE , this value MUST match the Oracle SEQUENCE INCREMENT value. If there is a mismatch between this value and the Oracle SEQUENCE INCREMENT value, then there will likely be duplicate key problems. For db-generator-type NAMED_SEQUENCE_TABLE , this tells how many keys the Container will fetch in a single DBMS call.</xs:documentation></xs:annotation></xs:element>
Defines arbitrary SQL statement. Note that SQL statement can be customized for different SQL dialects per DbAdapter class. If no adapter-specific statement is found, the one with no adapter label is used by default.
<xs:element name="sql"><xs:annotation><xs:documentation>Defines arbitrary SQL statement. Note that SQL statement can be customized for different SQL dialects per DbAdapter class. If no adapter-specific statement is found, the one with no adapter label is used by default.</xs:documentation></xs:annotation><xs:complexType><xs:simpleContent><xs:extension base="xs:string"><xs:attribute name="adapter-class" type="xs:string"/></xs:extension></xs:simpleContent></xs:complexType></xs:element>
<xs:attribute name="isPrimaryKey" type="xs:boolean"><xs:annotation><xs:documentation>If true, the value of attribute is unique and used as a primary key identifier.</xs:documentation></xs:annotation></xs:attribute>