Compare commits

..

11 Commits

Author SHA1 Message Date
Christian Georgi
810cac12d0 Better clone path 2020-04-20 17:09:07 +02:00
Christian Georgi
2cb2842dbe Add package-lock.json 2020-04-02 15:33:46 +02:00
Christian Georgi
e467635696 Update readme 2020-03-23 17:05:49 +01:00
Harini Gunabalan
a12cd7f4ec Update README.md 2020-03-21 23:32:56 +01:00
Harini Gunabalan
fa187be617 Adding code of OpenSAP week2 unit 1 demo 2020-03-21 23:31:43 +01:00
Daniel
06755978b2 Removed work-around for auto-exposed entities 2020-02-15 14:31:07 +01:00
Daniel
02469acebb Moved @odata.draft.enabled to app model 2020-02-15 14:25:15 +01:00
Dr. David Kunz
e2b47228db Update services.js 2020-02-12 17:13:35 +01:00
Christian Georgi
13480ad99e Added issue URL again 2020-02-04 09:11:28 +01:00
Daniel
8071faa62d Adding requires.db: {kind:'sql'} 2020-02-03 07:55:56 +01:00
johannes-vogel
9ea294586a remove link 2020-01-31 08:49:54 +01:00
3 changed files with 16 additions and 5 deletions

View File

@@ -11,7 +11,7 @@ In SAP Business Application Studio, open a terminal.
Then clone the repo with this specific branch: Then clone the repo with this specific branch:
```sh ```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 cd projects/cloud-cap-samples
``` ```

View File

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

View File

@@ -1,6 +1,7 @@
using { sap.capire.bookshop as my } from '../db/schema'; 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 Books as projection on my.Books;
entity Movies as projection on my.Movies;
entity Authors as projection on my.Authors; entity Authors as projection on my.Authors;
entity Orders as select from my.Orders; entity Orders as select from my.Orders;
} }