You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This directory contains a Spring Data JDBC example that uses JSON in Oracle Database to persist a sub-object.
2
+
3
+
The following table:
4
+
5
+
```
6
+
create table movie (
7
+
id number default movieidsequence.NEXTVAL primary key,
8
+
name varchar2(100),
9
+
details JSON
10
+
)
11
+
```
12
+
Stores instances of the class [Movie](src/main/java/movie/springjdbc/model/Movie.java).
13
+
The nested class [MovieDetails](src/main/java/movie/springjdbc/model/MovieDetails.java)
14
+
is stored within the details column as JSON.
15
+
16
+
JSON-B (jakarta.json.bind) is used to automatically convert the MovieDetails instances directly to from OSON in [Config.java](src/main/java/movie/springjdbc/Config.java).
0 commit comments