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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Caution: The OData infrastructure cannot check whether your specified keys are unique. So be careful<br />

when choosing keys.<br />

Generated Local Key<br />

For objects that do not have a unique key in their results, for example, calculation views or aggregated tables, you<br />

can generate a locally valid key. This key value numbers the results starting with 1 and is not meant for<br />

dereferencing the entity; you cannot use this key to retrieve the entity. The key is valid only for the duration of the<br />

current session and is used only to satisfy OData's need for a unique ID in the results. The property type of a<br />

generated local key is Edm.String and cannot be changed.<br />

Service definition sample.odata:generatedkeys.xsodata<br />

http://localhost:8002/sample/odata/generatedkeys.xsodata/$metadata<br />

194<br />

P U B L I C<br />

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

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

Defining Web-based Data Access

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

Saved successfully!

Ooh no, something went wrong!