Compare commits
8 Commits
openSAP-we
...
openSAP-we
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
aa74050c52 | ||
|
|
084e6ed51f | ||
|
|
56f696b87d | ||
|
|
84b299a23f | ||
|
|
198c15632e | ||
|
|
aaf42df652 | ||
|
|
d612b7bc0c | ||
|
|
21265e1138 |
@@ -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
|
||||
```
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user