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.

epository design time name of the .xsodata file is sap.hana.xs.doc/hello.xsodata the<br />

namespace will implicitly be sap.hana.xs.doc.hello.<br />

2. keyslist must not be specified for objects of type 'table'. They must only be applied to objects referring a<br />

view type. keygenerated in turn, can be applied to table objects.<br />

3. If the entityset is not specified in an entity, the EntitySet for this object is named after the repository<br />

object name or the catalogobjectname. E.g. if object is "sap.hana.xs.doc/odata_docu" the<br />

entitysetname is implicitly set to odata_docu which then can also be referenced in associations.<br />

4. The fromend in a naventry must be specified if the endtype is the same for both the principalend<br />

and the dependentend of an association.<br />

5. The number of joinproperties in the principalend must be the same as in the dependentend.<br />

6. Ordering in the joinproperties of ends is relevant. The first columnname in the joinproperties of<br />

the principalend is compared with the first columnname of the dependentend, the second with the<br />

second, and so on.<br />

7. The overprincipalend corresponds to the principalend. The number of properties in the<br />

joinproperties and the overproperties must be the same and their ordering is relevant. The same<br />

holds for the dependent end.<br />

8. aggregates can only be applied in combination with keygenerated.<br />

9. If aggregatestuple is omitted, the aggregation functions are derived from the database. This is only<br />

possible for calculation views and analytic views.<br />

10. Specifying parameters is only possible for calculation views and analytic views.<br />

11. The default parameterentitysetname is the entitysetname of the entity concatenated with the<br />

suffix "Parameters".<br />

12. If the parametersresultsprop is omitted, the navigation property from the parameter entity set to the<br />

entity is called "Results".<br />

8.1.8 OData Service Definition: SQL-EDM Type Mapping<br />

During the activation of the OData service definition, the <strong>SAP</strong> <strong>HANA</strong> SQL types are mapped to the required OData<br />

EDM types according to the rules specified in a mapping table.<br />

The following mapping table lists how <strong>SAP</strong> <strong>HANA</strong> SQL types are mapped to OData EDM types during the<br />

activation of an OData service definition.<br />

Note: The OData implementation in <strong>SAP</strong> <strong>HANA</strong> XS supports only those SQL types listed in the following<br />

table.<br />

Table 8: <strong>SAP</strong> <strong>HANA</strong> SQL to OData EDM Type Mapping<br />

<strong>SAP</strong> <strong>HANA</strong> SQL Type OData EDM Type<br />

Time Edm.Time<br />

Date Edm.DateTime<br />

186<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!