Compare commits
11 Commits
openSAP-we
...
openSAP-we
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
810cac12d0 | ||
|
|
2cb2842dbe | ||
|
|
e467635696 | ||
|
|
a12cd7f4ec | ||
|
|
fa187be617 | ||
|
|
06755978b2 | ||
|
|
02469acebb | ||
|
|
e2b47228db | ||
|
|
13480ad99e | ||
|
|
8071faa62d | ||
|
|
9ea294586a |
@@ -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-week1-unit4-final
|
||||
git clone https://github.com/sap-samples/cloud-cap-samples projects/cloud-cap-samples -b openSAP-week2-unit1
|
||||
cd projects/cloud-cap-samples
|
||||
```
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
namespace sap.capire.bookshop;
|
||||
using { Currency, managed } from '@sap/cds/common';
|
||||
|
||||
entity Books : managed {
|
||||
entity Books : managed, additionalInfo {
|
||||
key ID : Integer;
|
||||
title : localized String(111);
|
||||
descr : localized String(1111);
|
||||
@@ -27,4 +27,14 @@ 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,6 +1,7 @@
|
||||
using { sap.capire.bookshop as my } from '../db/schema';
|
||||
service AdminService @(_requires:'admin',path:'/admin') {
|
||||
service AdminService @(_requires:'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