28.01.2013 Views

SAP HANA Developer Guide - Get a Free Blog

SAP HANA Developer Guide - Get a Free Blog

SAP HANA Developer Guide - Get a Free Blog

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The second association is similar to the first one and is shown in the following listing:<br />

association "Customer_Recruit" principal "Customers"("ID") multiplicity<br />

"1" dependent "Customers"("RecruitID") multiplicity "*";<br />

Complex Associations<br />

For the following example of a complex association, an additional table named knows is introduced that contains a<br />

relationship between customers.<br />

Table definition: sample.odata:knows.hdbtable<br />

table.schemaName = "ODATASAMPLES";<br />

table.tableType = COLUMNSTORE;<br />

table.columns = [<br />

{name = "KnowingCustomerID"; sqlType = INTEGER; nullable = false;},<br />

{name = "KnownCustomerID"; sqlType = INTEGER; nullable = false;}<br />

<strong>SAP</strong> <strong>HANA</strong> <strong>Developer</strong> <strong>Guide</strong><br />

Defining Web-based Data Access<br />

P U B L I C<br />

© 2012 <strong>SAP</strong> AG. All rights reserved. 197

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!