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 {