13 lines
313 B
Plaintext
13 lines
313 B
Plaintext
@AccessControl.authorizationCheck: #NOT_REQUIRED
|
|
@EndUserText.label: 'Departments'
|
|
define view entity {{P}}I_DEPT
|
|
as select from {{p}}dept
|
|
association [0..1] to {{p}}dept as _parent on $projection.parent_id = _parent.dept_id
|
|
{
|
|
key dept_id,
|
|
dept_name,
|
|
parent_id,
|
|
headcount,
|
|
_parent
|
|
}
|