Compare commits

..

8 Commits

Author SHA1 Message Date
Heiko Witteborg
aa74050c52 Prepare for serve_on_root false 2023-06-16 10:11:31 +02:00
johannes-vogel
084e6ed51f clone to projects directory 2020-04-06 17:01:44 +02:00
Christian Georgi
56f696b87d Add package-lock.json 2020-04-02 15:26:44 +02:00
Christian Georgi
84b299a23f Fix readme 2020-04-02 15:07:25 +02:00
Christian Georgi
198c15632e Update readme 2020-03-23 17:04:56 +01:00
d045778
aaf42df652 update sample requests 2020-02-03 15:01:00 +01:00
d045778
d612b7bc0c add content for openSAP course week1 unit4 2020-01-30 17:30:03 +01:00
d045778
21265e1138 cleanup other packages 2020-01-30 17:21:45 +01:00
3 changed files with 5 additions and 16 deletions

View File

@@ -11,7 +11,7 @@ In SAP Business Application Studio, open a terminal.
Then clone the repo with this specific branch:
```sh
git clone https://github.com/sap-samples/cloud-cap-samples projects/cloud-cap-samples -b openSAP-week2-unit1
git clone https://github.com/sap-samples/cloud-cap-samples projects/cloud-cap-samples -b openSAP-week1-unit4-final
cd projects/cloud-cap-samples
```

View File

@@ -1,7 +1,7 @@
namespace sap.capire.bookshop;
using { Currency, managed } from '@sap/cds/common';
entity Books : managed, additionalInfo {
entity Books : managed {
key ID : Integer;
title : localized String(111);
descr : localized String(1111);
@@ -27,14 +27,4 @@ entity OrderItems {
parent : Association to Orders;
book : Association to Books;
amount : Integer;
}
entity Movies: additionalInfo {
key ID : Integer;
name : String(111);
}
aspect additionalInfo{
genre: String(100);
language: String(200);
}
}

View File

@@ -1,7 +1,6 @@
using { sap.capire.bookshop as my } from '../db/schema';
service AdminService @(_requires:'admin') {
service AdminService @(_requires:'admin',path:'/admin') {
entity Books as projection on my.Books;
entity Movies as projection on my.Movies;
entity Authors as projection on my.Authors;
entity Orders as select from my.Orders;
}
}