You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`LargeBinary`| Unlimited data, usually streamed at runtime<br/>[Prefer using Attachments plugin for large files](../plugins/index.md#attachments)|_BLOB_|
45
-
|`LargeString`| Unlimited data, usually streamed at runtime |_NCLOB_|
46
-
|`Map`| Mapped to *NCLOB* for HANA. |*JSON* type |
47
-
|`Vector` (`dimension `) | Requires SAP HANA Cloud QRC 1/2024, or later |_REAL_VECTOR_|
48
-
49
-
> <sup>(1)</sup> Concrete mappings to specific databases may differ.
50
-
>
51
-
> <sup>(2)</sup> See also [Best Practices](../guides/domain/index#don-t-interpret-uuids).
52
-
>
53
-
> <sup>(3)</sup> _SMALLINT_ on PostgreSQL and H2.
54
-
>
55
-
> <sup>(4)</sup> Productive apps should always use an explicit length. Use the default only for rapid prototyping.
56
-
>
57
-
> <sup>(5)</sup> Configurable through `cds.cdsc.defaultStringLength`.
58
-
>
59
-
> <sup>(6)</sup> Configurable through `cds.cdsc.defaultBinaryLength`.
60
-
61
-
#### See also...
13
+
The following table lists the built-in types in CDS, and their most common mapping to
14
+
ANSI SQL types, when deployed to a relational database (concrete mappings to specific databases may differ):
|`Integer`| Same as `Int32` by default |_INTEGER_|
21
+
|`Int16`| Signed 16-bit integer, range *[ -2<sup>15</sup> ... +2<sup>15</sup> )*|_SMALLINT_|
22
+
|`Int32`| Signed 32-bit integer, range *[ -2<sup>31</sup> ... +2<sup>31</sup> )*|_INTEGER_|
23
+
|`Int64`| Signed 64-bit integer, range *[ -2<sup>63</sup> ... +2<sup>63</sup> )*|_BIGINT_|
24
+
|`UInt8`| Unsigned 8-bit integer, range *[ 0 ... 255 ]*|_TINYINT_|
25
+
|`Decimal`(`p`,`s`) | Decimal with precision `p` and scale `s`|_DECIMAL_|
26
+
|`Double`| Floating point with binary mantissa |_DOUBLE_|
27
+
|`Date`| e.g. `2022-12-31`|_DATE_|
28
+
|`Time`| e.g. `23:59:59`|_TIME_|
29
+
|`DateTime`|_sec_ precision |_TIMESTAMP_|
30
+
|`Timestamp`|_µs_ precision, with up to 7 fractional digits |_TIMESTAMP_|
31
+
|`String` (`length`) | Default *length*: 255; on HANA: 5000 |_NVARCHAR_|
32
+
|`Binary` (`length`) | Default *length*: 255; on HANA: 5000 |_VARBINARY_|
33
+
|`Vector` (`length`) | SAP HANA Cloud QRC 1/2024, or later only |_REAL_VECTOR_|
34
+
|`LargeBinary`| Unlimited binary data, usually streamed at runtime |_BLOB_|
35
+
|`LargeString`| Unlimited textual data, usually streamed at runtime |_NCLOB_|
36
+
|`Map`| Mapped to *NCLOB* for HANA. |*JSON* type |
37
+
38
+
> [!info] Default String Lengths
39
+
> Lengths can be omitted, in which case default lengths are used. While this is usual in initial phases of a project, productive apps should always use explicitly defined length. The respective default lengths are configurable through the config options
40
+
> <Config> cds.cdsc.defaultStringLength = 255 </Config> and <br/>
> Consider using _Attachments_, as provided through [the CAP Attachments plugins](../plugins/index#attachments), instead of `LargeBinary` types for user-generated content like documents, images, etc.
45
+
46
+
See also:
62
47
63
48
[Additional Reuse Types and Aspects by `@sap/cds/common`](common) {.learn-more}
|_Root Cause_| You've [explicitly configured a mock](../java/security#explicitly-defined-mock-users) user with a name that is already used by a [preconfigured mock user](../java/security#preconfigured-mock-users). |
295
+
|_Root Cause_| You've [explicitly configured a mock](../java/security#custom-mock-users) user with a name that is already used by a [preconfigured mock user](../java/security#preconfigured-mock-users). |
296
296
|_Solution_| Rename the mock user and build your project again. |
297
297
298
298
### Why do I get an "Error on server start"?
@@ -678,7 +678,7 @@ By default, the Cloud MTA Build Tool executes module builds in parallel. If you
678
678
679
679
`cf undeploy <mta-id>` deletes an MTA (use `cf mtas` to find the MTAID).
680
680
681
-
Use the optional `--delete-services` parameter to also wipe service instances.
681
+
Use `--delete-services`, `--delete-service-keys` and `--delete-service-brokers` parameters to also wipe services, service keys, or service brokers.
682
682
683
683
::: danger This also deletes the HDI containers with the application data.
brew install --cask visual-studio-code # VS Code itself
79
+
```
80
+
```shell
83
81
code --install-extension sapse.vscode-cds # for .cds models
84
82
code --install-extension mechatroner.rainbow-csv # for .csv files
85
83
code --install-extension qwtel.sqlite-viewer # for .sqlite files
86
84
code --install-extension humao.rest-client # for REST requests
87
85
code --install-extension dbaeumer.vscode-eslint # for linting
88
86
```
87
+
```shell
88
+
code --install-extension oracle.oracle-java # for Java
89
+
code --install-extension vscjava.vscode-maven # for Maven
90
+
```
89
91
90
92
91
93
> You can of course also use other IDEs or editors of your choice, such as [IntelliJ IDEA](https://www.jetbrains.com/idea/), for which we also provide [support](../tools/cds-editors#intellij). Yet we strongly recommend Visual Studio Code for the best experience with CAP.
Copy file name to clipboardExpand all lines: guides/deploy/to-cf.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -150,7 +150,7 @@ cds add xsuaa
150
150
```
151
151
152
152
::: tip This will also generate an `xs-security.json` file
153
-
The roles/scopes are derived from authorization-related annotations in your CDS models. Ensure to rerun `cds compile --to xsuaa`, as documented in the [_Authorization_ guide](../security/authorization#xsuaa-configuration) whenever there are changes to these annotations.
153
+
The roles/scopes are derived from authorization-related annotations in your CDS models. Ensure to rerun `cds compile --to xsuaa`, as documented in the [_Security_ guide](../security/cap-users#xsuaa-roles) whenever there are changes to these annotations.
154
154
:::
155
155
156
156
[Learn more about SAP Authorization and Trust Management/XSUAA.](https://discovery-center.cloud.sap/serviceCatalog/authorization-and-trust-management-service?region=all){.learn-more}
0 commit comments