Augment `AdminService.Author` by 2 fields `age` and `lifetime` whose values are computed by SQLite and HANA-specific functions. Don't do this in bookshop directly, to keep it simple. Instead, use the fiori module, which also allows to integrate the fields in the UI. Co-authored-by: Daniel <daniel.hutzel@sap.com>
9 lines
297 B
Plaintext
9 lines
297 B
Plaintext
using { sap.capire.bookshop } from '@capire/bookshop';
|
|
|
|
// Forward-declare calculated fields to be filled in database-specific ways
|
|
// TODO find a better way to have 'default' fields that still can be overwritten.
|
|
extend bookshop.Authors with {
|
|
virtual age: Integer;
|
|
virtual lifetime: String;
|
|
}
|