Skip to content

Commit 664a42c

Browse files
committed
ionic4
1 parent 9fab9c3 commit 664a42c

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"homepage": "https://github.com/fernandocode/ionic-database-builder#readme",
4646
"dependencies": {
4747
"@angular/core": "~6.1.1",
48-
"database-builder": ">=0.1.0-beta.3"
48+
"database-builder": ">=0.1.0-beta.4"
4949
},
5050
"devDependencies": {
5151
"@angular/cli": "~6.1.1",
@@ -67,8 +67,8 @@
6767
"karma-coverage-istanbul-reporter": "^1.2.1",
6868
"karma-jasmine": "~1.1.0",
6969
"karma-jasmine-html-reporter": "^0.2.2",
70-
"ng-packagr": "2.4.2",
71-
"protractor": "~5.1.2",
70+
"ng-packagr": "4.1.1",
71+
"protractor": "~5.4.0",
7272
"ts-node": "~4.1.0",
7373
"tsickle": "0.27.5",
7474
"tslint": "~5.9.1",

src/test/mapper/table-mapper.ts

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { SubRegiao } from "../models/sub-regiao";
99
import { Regiao } from "../models/regiao";
1010
import { Classificacao } from "../models/classificacao";
1111
import { MapperBase } from "database-builder";
12+
import { PrimaryKeyType } from "database-builder/src/core/enums/primary-key-type";
1213

1314
@Injectable()
1415
export class TableMapper extends MapperBase {
@@ -23,13 +24,13 @@ export class TableMapper extends MapperBase {
2324
}
2425
);
2526

26-
this.add(TestClazzRef, x => x.id, true);
27-
this.add(TestClazz, x => x.id, true);
28-
this.add(Regiao, x => x.codeImport, true);
29-
this.add(SubRegiao, x => x.codeImport, true);
30-
this.add(Uf, x => x.codeImport, true);
31-
this.add(Cidade, x => x.codeImport, true);
32-
this.add(Classificacao, x => x.codeImport, true);
33-
this.add(Cliente, x => x.internalKey, true);
27+
this.autoMapper(TestClazzRef, x => x.id, PrimaryKeyType.AutoIncrement);
28+
this.autoMapper(TestClazz, x => x.id, PrimaryKeyType.AutoIncrement);
29+
this.autoMapper(Regiao, x => x.codeImport, PrimaryKeyType.AutoIncrement);
30+
this.autoMapper(SubRegiao, x => x.codeImport, PrimaryKeyType.AutoIncrement);
31+
this.autoMapper(Uf, x => x.codeImport, PrimaryKeyType.AutoIncrement);
32+
this.autoMapper(Cidade, x => x.codeImport, PrimaryKeyType.AutoIncrement);
33+
this.autoMapper(Classificacao, x => x.codeImport, PrimaryKeyType.AutoIncrement);
34+
this.autoMapper(Cliente, x => x.internalKey, PrimaryKeyType.AutoIncrement);
3435
}
3536
}

0 commit comments

Comments
 (0)