From 175e7b554f72b59ed3b3c08fd837b36be2cf6b43 Mon Sep 17 00:00:00 2001 From: d045778 Date: Thu, 25 Mar 2021 13:55:06 +0100 Subject: [PATCH] no replica context --- suppliers/srv/mashup.cds | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/suppliers/srv/mashup.cds b/suppliers/srv/mashup.cds index ab0b13cc..290f59d4 100644 --- a/suppliers/srv/mashup.cds +++ b/suppliers/srv/mashup.cds @@ -5,22 +5,19 @@ using {API_BUSINESS_PARTNER as S4} from './external/API_BUSINESS_PARTNER.csn'; -context replica { - @cds.autoexpose // or expose explicitly in Catalog and AdminService - @cds.persistence: {table, skip: false} - entity Suppliers as projection on S4.A_BusinessPartner { - key BusinessPartner as ID, - BusinessPartnerFullName as name - } +@cds.autoexpose // or expose explicitly in Catalog and AdminService +@cds.persistence: {table,skip:false} +entity sap.capire.bookshop.Suppliers as projection on S4.A_BusinessPartner { + key BusinessPartner as ID, BusinessPartnerFullName as name } using { sap.capire.bookshop.Books, CatalogService } from '@capire/bookshop'; extend Books with { - supplier : Association to replica.Suppliers; + supplier: Association to sap.capire.bookshop.Suppliers; } 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 {