SYS ORMs cannot be set to isRest: true.
"nameSpace": "SYS",
"type": "CustomerRelation",
"table": "custinfo",
- "isRest": true,
"comment": "Customer Relation Map",
"privileges": {
"all": {
"nameSpace": "SYS",
"type": "SalesOrderRelation",
"table": "xt.coheadinfo",
- "isRest": true,
"comment": "Sales Order Relation Map",
"privileges": {
"all": {
if(!nameSpace) throw new Error("A name space is required");
if(!type) throw new Error("A type is required");
if(!context) throw new Error("A context is required");
+ if(isRest && nameSpace === 'SYS') throw new Error("SYS ORMs cannot be isRest: true.");
sql = 'select orm_id as "id", ' +
' orm_json as "json", ' +