Skip to content

Commit fca71fa

Browse files
committed
HHH-17404 add comment in the what's new doc
1 parent 64ff7c7 commit fca71fa

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
@@ -300,3 +300,19 @@ Support for `hbm.xml` mappings will be removed in 8.0.
300300

301301
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`).
302302

303+
304+
[[OSON-support]]
305+
== OSON support
306+
307+
308+
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.
309+
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.
310+
Here is an example using Gradle build system
311+
```
312+
runtimeOnly ('com.oracle.database.jdbc:ojdbc-provider-jackson-oson:1.0.4')
313+
{
314+
exclude group: 'com.oracle.database.jdbc', module: 'ojdbc8'
315+
}
316+
```
317+
318+
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)