-
Notifications
You must be signed in to change notification settings - Fork 15
Description
I am using the git repository and following the Use Case 1: Trace the changes of child nodes from the current entity and display the meaningful data from child nodes (composition relation). However, the new value and old value registers the same.
change-tracking.cds
using { ProcessorService } from './processor-service';
annotate ProcessorService.Incidents with @changelog: [title] {
conversation @changelog: [conversation.message];
customer @changelog: [customer.email];
}
schema.cds
entity Incidents : cuid, managed {
customer : Association to Customers;
title : String @title: 'Title';
urgency : Association to Urgency default 'M';
status : Association to Status default 'N';
conversation : Composition of many Conversation;
}
aspect Conversation: managed, cuid {
timestamp : type of managed:createdAt;
author : type of managed:createdBy;
message : String;
};
