Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2106

Re: Difference between DEFINE VIEW and ENTITY statements (CDS-views)

$
0
0

Hello Mihail,

 

with a CDS entity you define a database table. For each entity definition (design time) a db table (runtime) is generated.

 

The name of the table in the schema defined with annotation @SCHEMA is a concatenation of the package (in which the hdbdd file is stored), the (maybe) used context(s) within the hdbdd file and the entity name.

 

If you have e.g. following syntax in the hdbdd file

namespace test.db;
@Schema : 'MY_SCHEMA'
context data {  @Catalog.tableType: #COLUMN  entity testtab {    key C1 : String(10);    key C2 : String(10);  };
}

in schema MY_SCHEMA a table "test.db::data.testtab" will be created, in which data can be persisted.

 

More information can be found in the CDS reference: http://help.sap.com/hana/SAP_HANA_Core_Data_Services_CDS_Reference_en.pdf

 

Best Regards,

Florian


Viewing all articles
Browse latest Browse all 2106

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>