Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

How to create n to 1 association in CDS

$
0
0

Hi ,

I want to portray a simple foreign key relationship of n to 1 between item and header of a sales order .

How do we do this in CDS ?

The following syntax gives error "Unexpected token ".." at line 13, column 24"

 

namespace test_cds_fu1;

@Schema: 'SYSTEM'
context cds_basic_assoc {
entity header {
key header_id : Integer ;
supplier_id : Integer;
};


entity item {
key item_id : Integer ;
h_assoc : Association[*..1] to header { header_id };
};

};

 

Could you please help ?

 

Thanks!

Anitha .


Viewing all articles
Browse latest Browse all 6412

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>