General

Related to class generation

className: string — name of the generated class. The final class name will be classNamespace+className, e.g. Wikidot_Om_Site. If omitted it will be autogenerated from the table name which will work in most cases

baseClassName: string — name of the "base" class. The final class name will be classNamespace+baseClassName. If not given, it defaults to "Base_"+className

peerClassName: string — name of the "peer" class. The final class name will be classNamespace+peerClassName. If not given, it defaults to "Peer_"+className

basePeerClassName: string — name of the "base peer" class. The final class name will be classNamespace+basePeerClassName. If not given, it defaults to "Base_Peer_"+className

Inheritance

inherits: string — name of another table in the database that this table would inherit structure from.

inheritsPrimaryKey = true|false — copy definition of the primary key from the parent table if true; defaults to false

placement

example

<unique>

Unique column constraint.

attributes

column: string, required — names of the columns to be unique in the table; multiple columns should be coma-separated. can also be an expression

name: string — if not given, name will be generated as tableName+''+columnName(+''+columnName)+'__unique'; in case of expression a name for the constraint should be given; names are unique within the database

<view>/<column>

A column inside a <view> element. Columns are defined here only to inform the code generator to generate proper get/set methods in the classes. Column names should match names defined in the supporting SELECT query.