no replica context

This commit is contained in:
d045778
2021-03-25 13:55:06 +01:00
parent 803432b8d9
commit 175e7b554f

View File

@@ -5,22 +5,19 @@
using {API_BUSINESS_PARTNER as S4} from './external/API_BUSINESS_PARTNER.csn'; using {API_BUSINESS_PARTNER as S4} from './external/API_BUSINESS_PARTNER.csn';
context replica { @cds.autoexpose // or expose explicitly in Catalog and AdminService
@cds.autoexpose // or expose explicitly in Catalog and AdminService @cds.persistence: {table,skip:false}
@cds.persistence: {table, skip: false} entity sap.capire.bookshop.Suppliers as projection on S4.A_BusinessPartner {
entity Suppliers as projection on S4.A_BusinessPartner { key BusinessPartner as ID, BusinessPartnerFullName as name
key BusinessPartner as ID,
BusinessPartnerFullName as name
}
} }
using { sap.capire.bookshop.Books, CatalogService } from '@capire/bookshop'; using { sap.capire.bookshop.Books, CatalogService } from '@capire/bookshop';
extend Books with { extend Books with {
supplier : Association to replica.Suppliers; supplier: Association to sap.capire.bookshop.Suppliers;
} }
extend service AdminService with { // why is AdminService visible? extend service AdminService with { // why is AdminService visible?
entity Suppliers as projection on replica.Suppliers; entity Suppliers as projection on sap.capire.bookshop.Suppliers;
} }
extend projection CatalogService.ListOfBooks with { extend projection CatalogService.ListOfBooks with {