
Table of Contents
1 Getting Started with Core Data Services..........................................4
1.1 Developing Native SAP HANA Applications...........................................5
1.2 Roles and Permissions.........................................................7
1.3 Setting up the Persistence Model..................................................9
1.4 Developer Information Map.....................................................10
1.4.1 SAP HANA Developer Information by Guide...................................12
1.4.2 SAP HANA Developer Information by Task................................... 15
1.4.3 SAP HANA Developer Information by Scenario................................ 17
2 Creating the Persistence Model in Core Data Services...............................22
2.1 CDS Editors................................................................23
2.1.1 CDS Text Editor......................................................23
2.2 Create a CDS Document.......................................................25
2.2.1 CDS Documents......................................................30
2.2.2 External Artifacts in CDS................................................33
2.2.3 CDS Naming Conventions...............................................34
2.2.4 CDS Namespaces.....................................................35
2.2.5 CDS Contexts....................................................... 36
2.2.6 CDS Annotations.....................................................40
2.2.7 CDS Comment Types..................................................49
2.3 Create an Entity in CDS........................................................50
2.3.1 CDS Entities.........................................................53
2.3.2 Entity Element Modifiers................................................55
2.3.3 CDS Entity Syntax Options.............................................. 57
2.4 Migrate an Entity from hdbtable to CDS (hdbdd)......................................61
2.4.1 Migration Guidelines: hdbtable to CDS Entity................................. 63
2.4.2 SAP HANA to CDS Data-Type Mapping......................................64
2.5 Create a User-Defined Structured Type in CDS.......................................65
2.5.1 CDS User-Defined Data Types............................................68
2.5.2 CDS Structured Type Definition...........................................71
2.5.3 CDS Structured Types................................................. 73
2.5.4 CDS Primitive Data Types...............................................75
2.6 Create an Association in CDS....................................................78
2.6.1 CDS Associations.....................................................81
2.6.2 CDS Association Syntax Options..........................................85
2.7 Create a View in CDS......................................................... 89
2.7.1 CDS Views..........................................................92
2.7.2 CDS View Syntax Options...............................................96
2.8 Modifications to CDS Artifacts..................................................101
2
P U B L I C
©
2014 SAP SE or an SAP affiliate company. All rights reserved.
SAP HANA Core Data Services (CDS) Reference
Table of Contents
评论