Skip to content

Commit fcf6a27

Browse files
updating SodaExamples to use jakarta.json - 2
1 parent 5c6e9a3 commit fcf6a27

File tree

4 files changed

+4
-9
lines changed

4 files changed

+4
-9
lines changed

JdbcExamples/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ This directory contains examples of how to store and access JSON type values in
1010
* [movie.Update](src/main/java/movie/Update.java) - Updates an movie record using whole document replacement.
1111
* [movie.UpdateMerge](src/main/java/movie/UpdateMerge.java) - Performs a partial update using JSON_MERGEPATCH().
1212
* [movie.UpdateTransform](src/main/java/movie/UpdateTransform.java) - Performs a partial update using JSON_TRANSFORM().
13-
* [movie.JSONP](src/main/java/movie/JSONP.java) - Inserts and retrieves a value using [JSON-P (javax.json)](https://javaee.github.io/jsonp/) interfaces.
14-
* [movie.JSONB](src/main/java/movie/JSONB.java) - Stores and retrieves a plain/custom Java object as JSON using [JSON-B (javax.json.bind)](https://javaee.github.io/jsonb-spec/).
13+
* [movie.JSONP](src/main/java/movie/JSONP.java) - Inserts and retrieves a value using [JSON-P (jakarta.json)](https://javaee.github.io/jsonp/) interfaces.
14+
* [movie.JSONB](src/main/java/movie/JSONB.java) - Stores and retrieves a plain/custom Java object as JSON using [JSON-B (jakarta.json.bind)](https://javaee.github.io/jsonb-spec/).
1515
* [movie.Jackson](src/main/java/movie/Jackson.java) - Encodes JSON from an external source, in this case a Jackson parser, as Oracle binary JSON and inserts it into the table.
1616
* [movie.BinaryJson](src/main/java/movie/BinaryJson.java) - Encodes JSON text as Oracle binary JSON, stores it in a file, and then reads it back again.
1717
* [movie.RunAll](src/main/java/movie/RunAll.java) - Runs all the examples at once.

JdbcExamples/src/main/java/movie/JSONP.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@ public static void main(String[] args) throws SQLException {
5757
System.out.println(obj.toString());
5858

5959
// Values such as JsonObject, JsonArray, JsonParser, and JsonGenerator
60-
// produced from JDBC can be mapped back and forth between the javax.json
60+
// produced from JDBC can be mapped back and forth between the jakarta.json
6161
// counterparts using the facade pattern. Mapping back and forth does not
6262
// make a copy of the data but rather it provides an alternate view of the same
6363
// data.
6464

65-
// Smith timestamp attribute is reported as a string when using the javax.json apis
65+
// Smith timestamp attribute is reported as a string when using the jakarta.json apis
6666
JsonValue value = obj.get("release");
6767
System.out.println(value + " is of type " + value.getValueType());
6868

-26.6 KB
Binary file not shown.

SodaExamples/target/maven-archiver/pom.properties

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)