Skip to content

Commit 93fa712

Browse files
authored
Update README.md to add the java type and OSON type mappings. (#145)
1 parent fb20779 commit 93fa712

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

ojdbc-provider-jackson-oson/README.md

+21
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,27 @@ in order to use the Oracle JDBC driver's JSON processing capabilities. It, there
1414
- **Java Types Handling**: Support for various complex and basic Java types during serialization and deserialization.
1515
- **Jackson Annotation support**: Support for Jackson Annotations. Note: When **@Format** annotation is used, the values are processed as Strings.
1616

17+
## Java type to Oson Mappings
18+
When the **OSON Provider for Jackson** is used the Java types are stored as their corresponding OSON types. The type
19+
mapping is given by the following table.
20+
21+
| **Java Type** | **Oson Type** |
22+
|--------------------------------------------|--------------------|
23+
| `LocalDateTime` | `OSON TIMESTAMP` |
24+
| `OffsetDateTime` | `OSON TIMESTAMPTZ` |
25+
| `Period` | `OSON INTERVALYM` |
26+
| `Duration` | `OSON INTERVALDS` |
27+
| `BigInteger` | `OSON NUMBER` |
28+
| `Year` | `OSON NUMBER` |
29+
| `byte[]` | `OSON byte[]` |
30+
| `java.util.Date` | `OSON DATE` |
31+
| `java.sql.Date` | `OSON DATE` |
32+
| `Timestamp` | `OSON TIMESTAMP` |
33+
| `LocalDate` | `OSON DATE` |
34+
| `Boolean` | `OSON BOOLEAN` |
35+
| `UUID` | `OSON UUID byte[]` |
36+
37+
1738
## Installation
1839

1940
All providers in this module are distributed as single jar on the Maven Central

0 commit comments

Comments
 (0)