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.

All information about the table, for example, the properties, the data types, and the primary key, is gathered from<br />

the database catalog.<br />

Database Objects<br />

Caution: Do not use catalog objects if a repository design-time object is available, as changes in the<br />

catalog object are not automatically reflected in the OData service.<br />

Similar to the exposure of an object by using the repository design-time name is the exposure by the database<br />

name:<br />

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

service {<br />

"ODATASAMPLES"."sample.odata:table.hdbtable" as "MyTable";<br />

}<br />

The service exposes the same table by using the database catalog name of the object and the name of the<br />

schema where the table is created in. The collection in the service catalog and the EntityType that is created in the<br />

metadata document is exactly the same as for repository objects.<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. 191

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

Saved successfully!

Ooh no, something went wrong!