Merge pull request #207 from SAP-samples/avoid-index.cds
Avoid central index.cds files to ease extensibility
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using { AdminService } from '../../db';
|
||||
using { AdminService } from '../../db/schema';
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// Add Author.age and .lifetime with a DB-specific function
|
||||
//
|
||||
|
||||
using { AdminService } from '..';
|
||||
using { AdminService } from '../schema';
|
||||
|
||||
extend projection AdminService.Authors with {
|
||||
YEARS_BETWEEN(dateOfBirth, dateOfDeath) as age: Integer,
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// Add Author.age and .lifetime with a DB-specific function
|
||||
//
|
||||
|
||||
using { AdminService } from '..';
|
||||
using { AdminService } from '../schema';
|
||||
|
||||
extend projection AdminService.Authors with {
|
||||
strftime('%Y',dateOfDeath)-strftime('%Y',dateOfBirth) as age: Integer,
|
||||
|
||||
Reference in New Issue
Block a user