Skip to content

Document cds.Map type #1895

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 4, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions java/cds-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ The [predefined CDS types](../cds/types) are mapped to Java types and as follows
| `cds.Binary` | `byte[]` | |
| `cds.LargeBinary` | `byte[]` | `java.io.InputStream` <sup>(1)</sup> if annotated with `@Core.MediaType` |
| `cds.Vector` | `com.sap.cds.CdsVector` | for [vector embeddings](#vector-embeddings) |
| `cds.Map` | `java.util.Map` | for arbitray [structured data](#structured-data)<sup>(2)</sup> |

### SAP HANA-Specific Data Types

Expand All @@ -62,6 +63,7 @@ To facilitate using legacy CDS models, the following [SAP HANA-specific data typ


> <sup>(1)</sup> Although the API to handle large objects is the same for every database, the streaming feature, however, is supported (and tested) in **SAP HANA**, **PostgreSQL**, and **H2**. See section [Database Support in Java](./cqn-services/persistence-services#database-support) for more details on database support and limitations.
> <sup>(2)</sup> Serialized as JSON to a CLOB column or JSONB column (on Postgres)

::: warning
The framework isn't responsible for closing the stream when writing to the database. You decide when the stream is to be closed. If you forget to close the stream, the open stream can lead to a memory leak.
Expand Down
Loading