Table annotation

Table represents the primary database table to which you are relating an external type, Record type, or Handler type.

EGL package name

eglx.persistence.sql

Example use
Record Customer {@Table{name = "CUSTOMER_TABLE"}}
   identifier STRING {@ID};
   corporateName STRING;
end
Annotation detail
record Table type Annotation {
   targets=[RecordPart, HandlerPart, ExternalTypePart]
   }
   name string;
   shortName string;
   catalog string;
   schema string;
end
Annotation fields
name
The table name. The default is the name of the type that is being annotated. The default name in the previous example would be “Customer”.
shortName
The table-name alias, as might be used in a SELECT statement.
catalog
The name of the database catalog that holds metadata about the table.
schema
The schema name used when referring to the table.

All of those fields are optional.

Comments
Compatibility

Table 1. Compatibility
Target Issue
Java No issues.
JavaScript Database access is not supported.