Skip to content

Commit

Permalink
Switch on new parser
Browse files Browse the repository at this point in the history
1) add a view that fails with new parser
  • Loading branch information
stewsk committed Jan 24, 2025
1 parent 52a468d commit b64e1f5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions db/schema.cds
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ entity Travel : managed {
to_Booking : Composition of many Booking on to_Booking.to_Travel = $self;
};

entity V as select from Travel {
TravelID,
number > 0 as positive
}


annotate Travel with @Capabilities.FilterRestrictions.FilterExpressionRestrictions: [
{ Property: 'BeginDate', AllowedExpressions : 'SingleRange' },
{ Property: 'EndDate', AllowedExpressions : 'SingleRange' }
Expand Down

0 comments on commit b64e1f5

Please sign in to comment.