@@ -21,44 +21,44 @@ uacp: Used as link target from Help Portal at https://help.sap.com/products/BTP/
2121
2222The [ predefined CDS types] ( ../cds/types ) are mapped to Java types and as follows:
2323
24- | CDS Type | Java Type | Remark |
25- | -------------------- | ------------------------ | -------------------------------------------------------------------------- |
26- | ` cds.UUID ` | ` java.lang.String ` | |
27- | ` cds.Boolean ` | ` java.lang.Boolean ` | |
28- | ` cds.UInt8 ` | ` java.lang.Short ` | |
29- | ` cds.Int16 ` | ` java.lang.Short ` | |
30- | ` cds.Int32 ` | ` java.lang.Integer ` | |
31- | ` cds.Integer ` | ` java.lang.Integer ` | |
32- | ` cds.Int64 ` | ` java.lang.Long ` | |
33- | ` cds.Integer64 ` | ` java.lang.Long ` | |
34- | ` cds.Decimal ` | ` java.math.BigDecimal ` | |
35- | ` cds.DecimalFloat ` | ` java.math.BigDecimal ` | deprecated |
36- | ` cds.Double ` | ` java.lang.Double ` | |
37- | ` cds.Date ` | ` java.time.LocalDate ` | date without a time-zone (year-month-day) |
38- | ` cds.Time ` | ` java.time.LocalTime ` | time without a time-zone (hour-minute-second) |
39- | ` cds.DateTime ` | ` java.time.Instant ` | instant on the time-line with _ sec_ precision |
40- | ` cds.Timestamp ` | ` java.time.Instant ` | instant on the time-line with _ µs_ precision |
41- | ` cds.String ` | ` java.lang.String ` | |
42- | ` cds.LargeString ` | ` java.lang.String ` | ` java.io.Reader ` <sup >(1)</sup > if annotated with ` @Core.MediaType ` |
43- | ` cds.Binary ` | ` byte[] ` | |
44- | ` cds.LargeBinary ` | ` byte[] ` | ` java.io.InputStream ` <sup >(1)</sup > if annotated with ` @Core.MediaType ` |
45- | ` cds.Vector ` | ` com.sap.cds.CdsVector ` | for [ vector embeddings] ( #vector-embeddings ) |
24+ | CDS Type | Java Type | Remark |
25+ | ------------------ | ----------------------- | ------------------------------------------------------------------------ |
26+ | ` cds.UUID ` | ` java.lang.String ` | |
27+ | ` cds.Boolean ` | ` java.lang.Boolean ` | |
28+ | ` cds.UInt8 ` | ` java.lang.Short ` | |
29+ | ` cds.Int16 ` | ` java.lang.Short ` | |
30+ | ` cds.Int32 ` | ` java.lang.Integer ` | |
31+ | ` cds.Integer ` | ` java.lang.Integer ` | |
32+ | ` cds.Int64 ` | ` java.lang.Long ` | |
33+ | ` cds.Integer64 ` | ` java.lang.Long ` | |
34+ | ` cds.Decimal ` | ` java.math.BigDecimal ` | |
35+ | ` cds.DecimalFloat ` | ` java.math.BigDecimal ` | deprecated |
36+ | ` cds.Double ` | ` java.lang.Double ` | |
37+ | ` cds.Date ` | ` java.time.LocalDate ` | date without a time-zone (year-month-day) |
38+ | ` cds.Time ` | ` java.time.LocalTime ` | time without a time-zone (hour-minute-second) |
39+ | ` cds.DateTime ` | ` java.time.Instant ` | instant on the time-line with _ sec_ precision |
40+ | ` cds.Timestamp ` | ` java.time.Instant ` | instant on the time-line with _ µs_ precision |
41+ | ` cds.String ` | ` java.lang.String ` | |
42+ | ` cds.LargeString ` | ` java.lang.String ` | ` java.io.Reader ` <sup >(1)</sup > if annotated with ` @Core.MediaType ` |
43+ | ` cds.Binary ` | ` byte[] ` | |
44+ | ` cds.LargeBinary ` | ` byte[] ` | ` java.io.InputStream ` <sup >(1)</sup > if annotated with ` @Core.MediaType ` |
45+ | ` cds.Vector ` | ` com.sap.cds.CdsVector ` | for [ vector embeddings] ( #vector-embeddings ) |
4646
4747### SAP HANA-Specific Data Types
4848
4949To facilitate using legacy CDS models, the following [ SAP HANA-specific data types] ( ../advanced/hana#hana-types ) are supported:
5050
51- | CDS Type | Java Type | Remark |
52- | --- | --- | --- |
53- | ` hana.TINYINT ` | ` java.lang.Short ` | |
54- | ` hana.SMALLINT ` | ` java.lang.Short ` | |
55- | ` hana.SMALLDECIMAL ` | ` java.math.BigDecimal ` | |
56- | ` hana.REAL ` | ` java.lang.Float ` | |
57- | ` hana.CHAR ` | ` java.lang.String ` | |
58- | ` hana.NCHAR ` | ` java.lang.String ` | |
59- | ` hana.VARCHAR ` | ` java.lang.String ` | |
60- | ` hana.CLOB ` | ` java.lang.String ` | ` java.io.Reader ` <sup >(1)</sup > if annotated with ` @Core.MediaType ` |
61- | ` hana.BINARY ` | ` byte[] ` | |
51+ | CDS Type | Java Type | Remark |
52+ | ------------------- | ---------------------- | ------------------------------------------------------------------- |
53+ | ` hana.TINYINT ` | ` java.lang.Short ` | |
54+ | ` hana.SMALLINT ` | ` java.lang.Short ` | |
55+ | ` hana.SMALLDECIMAL ` | ` java.math.BigDecimal ` | |
56+ | ` hana.REAL ` | ` java.lang.Float ` | |
57+ | ` hana.CHAR ` | ` java.lang.String ` | |
58+ | ` hana.NCHAR ` | ` java.lang.String ` | |
59+ | ` hana.VARCHAR ` | ` java.lang.String ` | |
60+ | ` hana.CLOB ` | ` java.lang.String ` | ` java.io.Reader ` <sup >(1)</sup > if annotated with ` @Core.MediaType ` |
61+ | ` hana.BINARY ` | ` byte[] ` | |
6262
6363
6464> <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.
@@ -275,6 +275,8 @@ person.toJson(); // { "salutation" : "Mr.", name : { "first" : "Frank" } }
275275Avoid cyclic relationships between CdsData objects when using toJson.
276276:::
277277
278+ <div id =" cdsdata-serialization-jsonconverter " />
279+
278280
279281## Vector Embeddings <Beta /> { #vector-embeddings }
280282
0 commit comments