Skip to content

Commit 99d2dda

Browse files
authored
regenerate module to remove dao folder (#29)
1 parent 20eb145 commit 99d2dda

9 files changed

Lines changed: 29 additions & 333 deletions

File tree

codbex-countries/codbex-countries.gen

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
"dataUnique": false,
5454
"isRequiredProperty": false,
5555
"isCalculatedProperty": false,
56+
"isReadOnlyProperty": false,
5657
"widgetLabel": "Id",
5758
"widgetDropdownUrl": "",
5859
"widgetDropdownControllerUrl": "",
@@ -78,6 +79,7 @@
7879
"dataPrimaryKey": false,
7980
"isRequiredProperty": false,
8081
"isCalculatedProperty": false,
82+
"isReadOnlyProperty": false,
8183
"widgetLabel": "Name",
8284
"widgetDropdownUrl": "",
8385
"widgetDropdownControllerUrl": "",
@@ -105,6 +107,7 @@
105107
"dataPrimaryKey": false,
106108
"isRequiredProperty": false,
107109
"isCalculatedProperty": false,
110+
"isReadOnlyProperty": false,
108111
"widgetLabel": "Code2",
109112
"widgetDropdownUrl": "",
110113
"widgetDropdownControllerUrl": "",
@@ -132,6 +135,7 @@
132135
"dataPrimaryKey": false,
133136
"isRequiredProperty": false,
134137
"isCalculatedProperty": false,
138+
"isReadOnlyProperty": false,
135139
"widgetLabel": "Code3",
136140
"widgetDropdownUrl": "",
137141
"widgetDropdownControllerUrl": "",
@@ -159,6 +163,7 @@
159163
"dataPrimaryKey": false,
160164
"isRequiredProperty": false,
161165
"isCalculatedProperty": false,
166+
"isReadOnlyProperty": false,
162167
"widgetLabel": "Numeric",
163168
"widgetDropdownUrl": "",
164169
"widgetDropdownControllerUrl": "",

codbex-countries/gen/codbex-countries/api/Settings/CountryController.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class CountryController {
2727
const options: Options = {
2828
limit: ctx.queryParameters["$limit"] ? parseInt(ctx.queryParameters["$limit"]) : 20,
2929
offset: ctx.queryParameters["$offset"] ? parseInt(ctx.queryParameters["$offset"]) : 0,
30-
language: request.getLocale().slice(0, 2)
30+
language: request.getLocale().split("_")[0]
3131
};
3232

3333
return this.repository.findAll(options);
@@ -96,7 +96,7 @@ class CountryController {
9696
this.checkPermissions('read');
9797
const id = parseInt(ctx.pathParameters.id);
9898
const options: Options = {
99-
language: request.getLocale().slice(0, 2)
99+
language: request.getLocale().split("_")[0]
100100
};
101101
const entity = this.repository.findById(id, options);
102102
if (entity) {

codbex-countries/gen/codbex-countries/dao/Settings/Country.extensionpoint

Lines changed: 0 additions & 4 deletions
This file was deleted.

codbex-countries/gen/codbex-countries/dao/Settings/CountryRepository.ts

Lines changed: 0 additions & 292 deletions
This file was deleted.

codbex-countries/gen/codbex-countries/dao/utils/EntityUtils.ts

Lines changed: 0 additions & 20 deletions
This file was deleted.

codbex-countries/gen/codbex-countries/data/Settings/CountryEntity.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Entity, Table, Id, Generated, Column, Documentation } from '@aerokit/sdk/db'
1+
import { Entity, Table, Id, Generated, Column, Documentation, CreatedAt, CreatedBy, UpdatedAt, UpdatedBy} from '@aerokit/sdk/db'
22

33
@Entity('CountryEntity')
44
@Table('CODBEX_COUNTRY')

codbex-countries/gen/codbex-countries/data/Settings/CountryRepository.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Repository, EntityEvent, EntityConstructor } from '@aerokit/sdk/db'
1+
import { Repository, EntityEvent, EntityConstructor, Options } from '@aerokit/sdk/db'
22
import { Component } from '@aerokit/sdk/component'
33
import { Producer } from '@aerokit/sdk/messaging'
44
import { Extensions } from '@aerokit/sdk/extensions'

0 commit comments

Comments
 (0)