Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit 19b680a

Browse files
committed
Moving lifetime + age to where it is used
Signed-off-by: Daniel <daniel.hutzel@sap.com>
1 parent 33380c0 commit 19b680a

6 files changed

Lines changed: 13 additions & 20 deletions

File tree

bookstore/db/schema.cds

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

bookstore/index.cds

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
namespace sap.capire.bookshop; //> important for reflection
2-
3-
using from '@capire/bookshop';
4-
using from './db/schema';
2+
using from './srv/mashup';

bookstore/package.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,7 @@
2525
"[production]": { "kind": "enterprise-messaging" }
2626
},
2727
"db": {
28-
"kind": "sql",
29-
"[development]": {
30-
"model": "db/sqlite"
31-
},
32-
"[production]": {
33-
"model": "db/hana"
34-
}
28+
"kind": "sql"
3529
}
3630
},
3731
"log": { "service": true }
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Add Author.age and .lifetime with a DB-specific function
33
//
44

5-
using { AdminService } from '../schema';
5+
using { AdminService } from '@capire/bookshop';
66

77
extend projection AdminService.Authors with {
88
YEARS_BETWEEN(dateOfBirth, dateOfDeath) as age: Integer,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Add Author.age and .lifetime with a DB-specific function
33
//
44

5-
using { AdminService } from '../schema';
5+
using { AdminService } from '@capire/bookshop';
66

77
extend projection AdminService.Authors with {
88
strftime('%Y',dateOfDeath)-strftime('%Y',dateOfBirth) as age: Integer,

fiori/package.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,15 @@
2929
"[development]": { "kind": "file-based-messaging" },
3030
"[hybrid!]": { "kind": "enterprise-messaging-shared" }
3131
},
32+
"db": {
33+
"kind": "sql",
34+
"[development]": {
35+
"model": "db/sqlite"
36+
},
37+
"[production]": {
38+
"model": "db/hana"
39+
}
40+
},
3241
"hana": {
3342
"deploy-format": "hdbtable"
3443
}

0 commit comments

Comments
 (0)