diff --git a/fiori/app/admin-books/fiori-service.cds b/fiori/app/admin-books/fiori-service.cds index 58b4cc1c..d7b1cd57 100644 --- a/fiori/app/admin-books/fiori-service.cds +++ b/fiori/app/admin-books/fiori-service.cds @@ -64,8 +64,9 @@ annotate AdminService.Books.texts with @( // Add Value Help for Locales annotate AdminService.Books.texts { - locale @ValueList:{entity:'Languages'}; - locale @Common.ValueListWithFixedValues:true; //show as drop down, not a dialog + locale @( + ValueList.entity:'Languages', Common.ValueListWithFixedValues, //show as drop down, not a dialog + ) } // In addition we need to expose Languages through AdminService as a target for ValueList using { sap } from '@sap/cds/common'; diff --git a/reviews/db/schema.cds b/reviews/db/schema.cds index 456ef13d..2af0c7d8 100644 --- a/reviews/db/schema.cds +++ b/reviews/db/schema.cds @@ -32,7 +32,6 @@ entity Likes { // Auto-fill reviewers and review dates annotate Reviews with { - reviewer @cds.on.insert:$user; - date @cds.on.insert:$now; - date @cds.on.update:$now; + reviewer @cds.on:{insert:$user}; + date @cds.on:{insert:$now,update:$now}; }