Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions codbex-countries/codbex-countries.edm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<model>
<entities>
<entity name="Country" dataName="COUNTRY" dataCount="SELECT COUNT(*) AS COUNT FROM &quot;${tablePrefix}_COUNTRY&quot;" dataQuery="" type="SETTING" title="Country" caption="Manage entity Country" description="Manage entity Country" tooltip="Country" icon="globe" menuKey="country" menuLabel="Country" menuIndex="100" layoutType="" perspectiveName="Settings" perspectiveLabel="" perspectiveHeader="" perspectiveIcon="globe" perspectiveOrder="990" perspectiveNavId="" perspectiveRole="" generateReport="false" multilingual="true" generateDefaultRoles="true" roleRead="codbex-countries.Countries.CountryReadOnly" roleWrite="codbex-countries.Countries.CountryFullAccess">
<entity name="Country" dataName="COUNTRY" dataCount="SELECT COUNT(*) AS COUNT FROM &quot;${tablePrefix}_COUNTRY&quot;" dataQuery="" type="SETTING" title="Country" caption="Manage entity Country" description="Manage entity Country" tooltip="Country" icon="globe" menuKey="country" menuLabel="Country" menuIndex="100" layoutType="MANAGE" perspectiveName="Settings" perspectiveLabel="Entities" perspectiveHeader="" perspectiveIcon="globe" perspectiveOrder="990" perspectiveNavId="" perspectiveRole="" generateReport="false" multilingual="true" generateDefaultRoles="true" roleRead="codbex-countries.Countries.CountryReadOnly" roleWrite="codbex-countries.Countries.CountryFullAccess">
<property name="Id" description="" tooltip="" dataName="COUNTRY_ID" dataType="INTEGER" dataNullable="true" dataPrimaryKey="true" dataAutoIncrement="true" widgetType="TEXTBOX" widgetSize="" widgetLength="20" widgetIsMajor="true"></property>
<property name="Name" description="" tooltip="" dataName="COUNTRY_NAME" dataType="VARCHAR" dataLength="255" dataNullable="false" dataUnique="true" widgetType="TEXTBOX" widgetSize="fd-col-md--4 fd-col--6" widgetLength="20" widgetIsMajor="true"></property>
<property name="Code2" description="" tooltip="" dataName="COUNTRY_CODE2" dataType="CHAR" dataLength="2" dataNullable="false" dataUnique="true" widgetType="TEXTBOX" widgetSize="fd-col-md--2 fd-col--3" widgetLength="20" widgetIsMajor="true"></property>
Expand All @@ -12,5 +12,5 @@
</perspectives>
<navigations>
</navigations>
<mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/><mxCell id="2" style="entity" parent="1" vertex="1"><Entity name="Country" dataName="COUNTRY" dataCount="SELECT COUNT(*) AS COUNT FROM &quot;${tablePrefix}_COUNTRY&quot;" title="Country" tooltip="Country" icon="globe" menuLabel="Country" perspectiveIcon="globe" perspectiveOrder="990" type="Entity" menuKey="country" perspectiveName="Settings" caption="Manage entity Country" disableGeneration="false" entityType="SETTING" description="Manage entity Country" generateDefaultRoles="true" roleRead="codbex-countries.Countries.CountryReadOnly" roleWrite="codbex-countries.Countries.CountryFullAccess" multilingual="true" as="value"><Array as="referenceProjections"/></Entity><mxGeometry x="240" y="80" width="200" height="158" as="geometry"><mxRectangle width="200" height="28" as="alternateBounds"/></mxGeometry></mxCell><mxCell id="3" parent="2" vertex="1" connectable="0"><Property name="Id" dataName="COUNTRY_ID" dataType="INTEGER" dataLength="0" dataPrimaryKey="true" dataAutoIncrement="true" as="value"/><mxGeometry y="28" width="200" height="26" as="geometry"/></mxCell><mxCell id="6" parent="2" vertex="1" connectable="0"><Property name="Name" dataName="COUNTRY_NAME" dataLength="255" dataNotNull="true" dataUnique="true" dataPrecision="NaN" dataScale="NaN" widgetSize="fd-col-md--4 fd-col--6" as="value"/><mxGeometry y="54" width="200" height="26" as="geometry"/></mxCell><mxCell id="7" parent="2" vertex="1" connectable="0"><Property name="Code2" dataName="COUNTRY_CODE2" dataType="CHAR" dataLength="2" dataNotNull="true" dataUnique="true" dataPrecision="NaN" dataScale="NaN" widgetSize="fd-col-md--2 fd-col--3" as="value"/><mxGeometry y="80" width="200" height="26" as="geometry"/></mxCell><mxCell id="8" parent="2" vertex="1" connectable="0"><Property name="Code3" dataName="COUNTRY_CODE3" dataType="CHAR" dataLength="3" dataNotNull="true" dataUnique="true" dataPrecision="NaN" dataScale="NaN" widgetSize="fd-col-md--2 fd-col--3" as="value"/><mxGeometry y="106" width="200" height="26" as="geometry"/></mxCell><mxCell id="9" parent="2" vertex="1" connectable="0"><Property name="Numeric" dataName="COUNTRY_NUMERIC" dataType="CHAR" dataLength="3" dataNotNull="true" dataUnique="true" dataPrecision="NaN" dataScale="NaN" widgetSize="fd-col-md--2 fd-col--3" as="value"/><mxGeometry y="132" width="200" height="26" as="geometry"/></mxCell></root></mxGraphModel>
<mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/><mxCell id="2" style="entity" parent="1" vertex="1"><Entity name="Country" dataName="COUNTRY" dataCount="SELECT COUNT(*) AS COUNT FROM &quot;${tablePrefix}_COUNTRY&quot;" title="Country" tooltip="Country" icon="globe" menuLabel="Country" perspectiveIcon="globe" perspectiveOrder="990" type="Entity" menuKey="country" perspectiveName="Settings" caption="Manage entity Country" disableGeneration="false" entityType="SETTING" description="Manage entity Country" generateDefaultRoles="true" roleRead="codbex-countries.Countries.CountryReadOnly" roleWrite="codbex-countries.Countries.CountryFullAccess" multilingual="true" as="value"/><mxGeometry x="240" y="80" width="200" height="158" as="geometry"><mxRectangle width="200" height="28" as="alternateBounds"/></mxGeometry></mxCell><mxCell id="3" parent="2" vertex="1" connectable="0"><Property name="Id" dataName="COUNTRY_ID" dataType="INTEGER" dataLength="0" dataPrimaryKey="true" dataAutoIncrement="true" as="value"/><mxGeometry y="28" width="200" height="26" as="geometry"/></mxCell><mxCell id="6" parent="2" vertex="1" connectable="0"><Property name="Name" dataName="COUNTRY_NAME" dataLength="255" dataNotNull="true" dataUnique="true" dataPrecision="NaN" dataScale="NaN" widgetSize="fd-col-md--4 fd-col--6" as="value"/><mxGeometry y="54" width="200" height="26" as="geometry"/></mxCell><mxCell id="7" parent="2" vertex="1" connectable="0"><Property name="Code2" dataName="COUNTRY_CODE2" dataType="CHAR" dataLength="2" dataNotNull="true" dataUnique="true" dataPrecision="NaN" dataScale="NaN" widgetSize="fd-col-md--2 fd-col--3" as="value"/><mxGeometry y="80" width="200" height="26" as="geometry"/></mxCell><mxCell id="8" parent="2" vertex="1" connectable="0"><Property name="Code3" dataName="COUNTRY_CODE3" dataType="CHAR" dataLength="3" dataNotNull="true" dataUnique="true" dataPrecision="NaN" dataScale="NaN" widgetSize="fd-col-md--2 fd-col--3" as="value"/><mxGeometry y="106" width="200" height="26" as="geometry"/></mxCell><mxCell id="9" parent="2" vertex="1" connectable="0"><Property name="Numeric" dataName="COUNTRY_NUMERIC" dataType="CHAR" dataLength="3" dataNotNull="true" dataUnique="true" dataPrecision="NaN" dataScale="NaN" widgetSize="fd-col-md--2 fd-col--3" as="value"/><mxGeometry y="132" width="200" height="26" as="geometry"/></mxCell></root></mxGraphModel>
</model>
7 changes: 6 additions & 1 deletion codbex-countries/codbex-countries.gen
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"roleWrite": "codbex-countries.Countries.CountryFullAccess"
}
],
"tprefix": "codbex-countries-model",
"projectName": "codbex-countries",
"workspaceName": "workspace",
"filePath": "codbex-countries.model",
Expand All @@ -32,7 +33,6 @@
"role": ""
}
},
"tprefix": "codbex-countries-model",
"models": [
{
"properties": [
Expand All @@ -55,6 +55,7 @@
"isCalculatedProperty": false,
"widgetLabel": "Id",
"widgetDropdownUrl": "",
"widgetDropdownControllerUrl": "",
"dataTypeJava": "int",
"dataTypeTypescript": "number",
"inputRule": ""
Expand All @@ -79,6 +80,7 @@
"isCalculatedProperty": false,
"widgetLabel": "Name",
"widgetDropdownUrl": "",
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
"minLength": 0,
Expand All @@ -105,6 +107,7 @@
"isCalculatedProperty": false,
"widgetLabel": "Code2",
"widgetDropdownUrl": "",
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
"minLength": 0,
Expand All @@ -131,6 +134,7 @@
"isCalculatedProperty": false,
"widgetLabel": "Code3",
"widgetDropdownUrl": "",
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
"minLength": 0,
Expand All @@ -157,6 +161,7 @@
"isCalculatedProperty": false,
"widgetLabel": "Numeric",
"widgetDropdownUrl": "",
"widgetDropdownControllerUrl": "",
"dataTypeJava": "string",
"dataTypeTypescript": "string",
"minLength": 0,
Expand Down
4 changes: 2 additions & 2 deletions codbex-countries/codbex-countries.model
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,15 @@
"generateDefaultRoles": "true",
"generateReport": "false",
"icon": "globe",
"layoutType": "",
"layoutType": "MANAGE",
"menuIndex": "100",
"menuKey": "country",
"menuLabel": "Country",
"multilingual": "true",
"name": "Country",
"perspectiveHeader": "",
"perspectiveIcon": "globe",
"perspectiveLabel": "",
"perspectiveLabel": "Entities",
"perspectiveName": "Settings",
"perspectiveNavId": "",
"perspectiveOrder": "990",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Controller, Get, Post, Put, Delete, request, response } from "sdk/http"
import { Extensions } from "sdk/extensions"
import { Controller, Get, Post, Put, Delete, request, response } from "@aerokit/sdk/http"
import { Extensions } from "@aerokit/sdk/extensions"
import { CountryRepository, CountryEntityOptions } from "../../dao/Settings/CountryRepository";
import { user } from "sdk/security"
import { user } from "@aerokit/sdk/security"
import { ForbiddenError } from "../utils/ForbiddenError";
import { ValidationError } from "../utils/ValidationError";
import { HttpUtils } from "../utils/HttpUtils";
Expand Down
4 changes: 2 additions & 2 deletions codbex-countries/gen/codbex-countries/api/utils/HttpUtils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { response } from "sdk/http";
import { response } from "@aerokit/sdk/http";

export class HttpUtils {

Expand Down Expand Up @@ -57,4 +57,4 @@ export class HttpUtils {
response.println(JSON.stringify(body));
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { sql, query } from "sdk/db";
import { producer } from "sdk/messaging";
import { extensions } from "sdk/extensions";
import { dao as daoApi } from "sdk/db";
import { sql, query } from "@aerokit/sdk/db";
import { producer } from "@aerokit/sdk/messaging";
import { extensions } from "@aerokit/sdk/extensions";
import { dao as daoApi } from "@aerokit/sdk/db";

export interface CountryEntity {
readonly Id: number;
Expand Down