enhance remarks
This commit is contained in:
@@ -11,6 +11,7 @@ using { sap.capire.bookshop.OrderItems } from '@capire/orders';
|
|||||||
|
|
||||||
entity CustomerPostalAddress as projection on db.CustomerPostalAddress;
|
entity CustomerPostalAddress as projection on db.CustomerPostalAddress;
|
||||||
|
|
||||||
|
// create view on Orders and Items as flat projection
|
||||||
entity OrderItemView as
|
entity OrderItemView as
|
||||||
SELECT from Orders
|
SELECT from Orders
|
||||||
{ key ID,
|
{ key ID,
|
||||||
@@ -22,10 +23,13 @@ using { sap.capire.bookshop.OrderItems } from '@capire/orders';
|
|||||||
Items.amount as Item_Amount,
|
Items.amount as Item_Amount,
|
||||||
Items.netAmount as Item_NetAmount};
|
Items.netAmount as Item_NetAmount};
|
||||||
|
|
||||||
|
// annotate new view
|
||||||
annotate PDMService.OrderItemView with @(PersonalData.EntitySemantics: 'ContractRelated')
|
annotate PDMService.OrderItemView with @(PersonalData.EntitySemantics: 'ContractRelated')
|
||||||
{
|
{
|
||||||
Customer_ID @PersonalData.FieldSemantics: 'DataSubjectID';
|
Customer_ID @PersonalData.FieldSemantics: 'DataSubjectID';
|
||||||
Customer_Email @PersonalData.IsPotentiallyPersonal;
|
Customer_Email @PersonalData.IsPotentiallyPersonal;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Data Privacy annotations on 'Customers' and 'CustomerPostalAddress' are derived from original entity definitions
|
||||||
|
|
||||||
};
|
};
|
||||||
Reference in New Issue
Block a user