15 lines
501 B
Plaintext
15 lines
501 B
Plaintext
@AccessControl.authorizationCheck: #NOT_REQUIRED
|
|
@EndUserText.label: 'Bus routes with depot and stops'
|
|
define view entity {{P}}I_ROUTE
|
|
as select from {{p}}route as r
|
|
left outer join {{p}}depot as d on d.depot_id = r.depot_id
|
|
association [0..*] to {{P}}I_STOP as _stop on $projection.route_id = _stop.route_id
|
|
{
|
|
key r.route_id as route_id,
|
|
r.route_name as route_name,
|
|
d.depot_name as depot_name,
|
|
d.city as city,
|
|
r.distance_km as distance_km,
|
|
_stop
|
|
}
|