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.

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

SecondDate Edm.DateTime<br />

LongDate Edm.DateTime<br />

Timestamp Edm.DateTime<br />

TinyInt Edm.Byte<br />

SmallInt Edm.Int16<br />

Integer Edm.Int32<br />

BigInt Edm.Int64<br />

SmallDecimal Edm.Decimal<br />

Decimal Edm.Decimal<br />

Real Edm.Single<br />

Float Edm.Single<br />

Double Edm.Double<br />

Varchar Edm.String<br />

NVarchar Edm.String<br />

Char Edm.String<br />

NChar Edm.String<br />

Binary Edm.Binary<br />

Varbinary Edm.Binary<br />

Example SQL Type Mapping<br />

The following examples shows how <strong>SAP</strong> <strong>HANA</strong> SQL types (name, integer, Varchar) of columns in a table are<br />

mapped to the OData EDM types in the properties of an entity type.<br />

<strong>SAP</strong> <strong>HANA</strong> SQL:<br />

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

{name = "RefereeID"; sqlType = VARCHAR; nullable = true;}<br />

The following example illustrates how the <strong>SAP</strong> <strong>HANA</strong> SQL types illustrated in the previous example are mapped to<br />

EDM types:<br />

<br />

<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. 187

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

Saved successfully!

Ooh no, something went wrong!