demo for bhagat

This commit is contained in:
Daniel
2021-02-02 16:19:42 +01:00
committed by Daniel Hutzel
parent b5031588ce
commit a037d92c97
15 changed files with 5887 additions and 0 deletions

2425
demo/srv/external/API_BUSINESS_PARTNER.csn vendored Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

0
demo/srv/service.js Normal file
View File

17
demo/srv/services.cds Normal file
View File

@@ -0,0 +1,17 @@
using { sap.capire, sap.capire.bookshop.Books } from '@capire/bookshop';
using { API_BUSINESS_PARTNER as external } from './external/API_BUSINESS_PARTNER.csn';
extend Books with {
supplier : Association to Suppliers;
}
extend service CatalogService with {
entity MySuppliers as projection on Suppliers;
}
@cds.persistence:{table,skip:false}
entity Suppliers as projection on external.A_BusinessPartner {
BusinessPartner as ID,
LastName,
AcademicTitle
}