From 4ee2d9a3f150279e7dbc4b52d18dd35ab5c7551f Mon Sep 17 00:00:00 2001 From: Christian Georgi Date: Tue, 2 Feb 2021 15:53:59 +0100 Subject: [PATCH] Fix wrong element name --- gdpr/db/data-privacy.cds | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gdpr/db/data-privacy.cds b/gdpr/db/data-privacy.cds index 4c8326b5..ac182ed6 100644 --- a/gdpr/db/data-privacy.cds +++ b/gdpr/db/data-privacy.cds @@ -3,10 +3,10 @@ using { sap.capire.bookshop } from './schema'; // annotations for Data Privacy annotate bookshop.Customers with @PersonalData.DataSubjectRole: 'Customer'; -annotate bookshop.Customers with @PersonalData.EntitySemantics: 'DataSubject' +annotate bookshop.Customers with @PersonalData.EntitySemantics: 'DataSubject' { ID @PersonalData.FieldSemantics: 'DataSubjectID'; - emailAddress @PersonalData.IsPotentiallyPersonal; + email @PersonalData.IsPotentiallyPersonal; firstName @PersonalData.IsPotentiallyPersonal; lastName @PersonalData.IsPotentiallyPersonal; creditCardNo @PersonalData.IsPotentiallySensitive; @@ -14,7 +14,7 @@ annotate bookshop.Customers with @PersonalData.EntitySemantics: 'DataSubject' } annotate bookshop.CustomerPostalAddress with @PersonalData.DataSubjectRole: 'Customer'; -annotate bookshop.CustomerPostalAddress with @PersonalData.EntitySemantics: 'DataSubjectDetails' +annotate bookshop.CustomerPostalAddress with @PersonalData.EntitySemantics: 'DataSubjectDetails' { Customer @PersonalData.FieldSemantics: 'DataSubjectID'; street @PersonalData.IsPotentiallyPersonal; @@ -23,13 +23,13 @@ annotate bookshop.CustomerPostalAddress with @PersonalData.EntitySemantics: 'Dat } // annotations for Personal Data Manager - Search Fields -annotate bookshop.Customers with @(Communication.Contact : { +annotate bookshop.Customers with @(Communication.Contact : { n : { surname: lastName, given: firstName - }, + }, bday: dateOfBirth -}); +}); // annotations for Audit Log annotate bookshop.Customers with @AuditLog.Operation: {Read: true, Insert: true, Update: true, Delete: true};