-
Notifications
You must be signed in to change notification settings - Fork 102
/
Copy pathbehavior_definition_unmanaged
50 lines (35 loc) · 1.08 KB
/
behavior_definition_unmanaged
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
implementation unmanaged;
// behavior defintion for the TRAVEL root entity
define behavior for /DMO/I_Travel_U alias travel
implementation in class /DMO/BP_TRAVEL_U unique
etag LastChangedAt
{
field (read only) TravelID;
field (mandatory) AgencyID, CustomerID, BeginDate, EndDate;
create;
update;
delete;
action set_status_booked result [1] $self;
association _Booking { create; }
}
// behavior defintion for the BOOKING child entity
define behavior for /DMO/I_Booking_U alias booking
implementation in class /DMO/BP_BOOKING_U unique
{
field (read only) TravelID, BookingID;
field (mandatory) BookingDate, CustomerID, AirlineID, ConnectionID, FlightDate;
create;
update;
delete;
association _BookSupplement abbreviation _Supplement { create; }
}
// behavior defintion for the BOOKING SUPPLEMENT sub node
define behavior for /DMO/I_BOOKINGSUPPLEMENT_U alias bookingsupplement
implementation in class /DMO/BP_BOOKINGSUPPLEMENT_U unique
{
field (read only) TravelID, BookingID, BookingSupplementID ;
field (mandatory) SupplementID, Price;
create;
update;
delete;
}