cancel
Showing results for 
Search instead for 
Did you mean: 

Managed or unmanaged association ?

Former Member
0 Kudos

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,
🙂

Accepted Solutions (0)

Answers (0)