Hi All,
We are using SP8 version of HANA and created all the tables using hdbtable concept. Now we have a requirement to give foreign key relationships between the tables. I found in many posts that foreign key relationships is currently not supported and as an alternative people are asking to create a procedure and write the code. But in developer guide I saw an option to give foreign key constraints as below. When i try to create an .xsodata object and activate it with the code, it is not generating any constraint. I performed test to check the referential integrity, But it did not work. Please let me know if I am missing any setting or step.
Code used :
service { "sample.odata::customer" as "Customers"; "sample.odata::order" as "Orders"; association "Customer_Orders" principal "Customers"("ID") multiplicity "1" dependent "Orders"("CustomerID") multiplicity "*"; }
Note : Code wise, there is no problem for me with syntax.