Moved managed data annotations
This commit is contained in:
@@ -29,3 +29,10 @@ entity Likes {
|
|||||||
key review : Association to Reviews;
|
key review : Association to Reviews;
|
||||||
key user : User;
|
key user : User;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Auto-fill reviewers and review dates
|
||||||
|
annotate Reviews with {
|
||||||
|
reviewer @cds.on.insert:$user;
|
||||||
|
date @cds.on.insert:$now;
|
||||||
|
date @cds.on.update:$now;
|
||||||
|
}
|
||||||
|
|||||||
@@ -16,13 +16,6 @@ service ReviewsService {
|
|||||||
rating @mandatory @assert.enum;
|
rating @mandatory @assert.enum;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Auto-fill reviewers and review dates
|
|
||||||
annotate Reviews with {
|
|
||||||
reviewer @cds.on.insert:$user;
|
|
||||||
date @cds.on.insert:$now;
|
|
||||||
date @cds.on.update:$now;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user