Skip to content

Commit 1d6e45b

Browse files
committed
HHH-17404 add comment in the what's new doc
1 parent 5db49f0 commit 1d6e45b

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

whats-new.adoc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,3 +374,19 @@ Support for `hbm.xml` mappings will be removed in 8.0.
374374

375375
We offer a transformation of `hbm.xml` files into `mapping.xml` files, which is available both at build-time (Gradle plugin) and at run-time (using `hibernate.transform_hbm_xml.enabled=true`).
376376

377+
378+
[[OSON-support]]
379+
== OSON support
380+
381+
382+
Starting in 21c, link:https://docs.oracle.com/en/database/oracle/oracle-database/23/adjsn/json-oracle-database.html[Oracle JSON binary format] (also known as OSON) can now be used in Hibernate to store `JSON` data. It brings a performance boost by replacing the actual to/from String conversion.
383+
To enable the OSON support, the link:https://github.com/oracle/ojdbc-extensions/blob/main/ojdbc-provider-jackson-oson/README.md[Oracle JDBC extension] must be added to the application classpath.
384+
Here is an example using Gradle build system
385+
```
386+
runtimeOnly ('com.oracle.database.jdbc:ojdbc-provider-jackson-oson:1.0.4')
387+
{
388+
exclude group: 'com.oracle.database.jdbc', module: 'ojdbc8'
389+
}
390+
```
391+
392+
The use of OSON can be disabled by setting the following hibernate property `hibernate.dialect.oracle.oson_format_disabled=true`

0 commit comments

Comments
 (0)