Skip to Content
0

Managed or unmanaged association ?

Aug 24, 2017 at 02:01 PM

50

avatar image
Former Member

Hello All,
I am pasting a sample code for defining CDS entities and their associations. There are 4 of them. Can anyone please tell with justification whether each of them are managed or unmanaged associations ?

entity Customer {

   key id : Integer;
   orders : Association[*] to SalesOrder on orders.cust_id = id;
   name : String(80);
};
entity SalesOrder {
   key id : Integer;
   cust_id : Integer;
   customer: Association[1] to Customer on customer.id = cust_id;
   items : Association[*] to Item on items.order_id = id;
   status: String(20);
   date : LocalDate;
};
entity Item {
   key id : Integer;
   order_id : Integer;
   salesOrder : Association[1] to SalesOrder on salesOrder.id = order_id;
   descr : String(100);
   price : Decimal(8,2);
};


Thanks and Regards,
:)

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers