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
Copy file name to clipboardexpand all lines: database/starters/oracle-spring-boot-starter-samples/oracle-spring-boot-sample-json-duality/src/main/java/com/oracle/database/spring/jsonduality/Course.java
+11-8
Original file line number
Diff line number
Diff line change
@@ -2,21 +2,13 @@
2
2
// Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
3
3
packagecom.oracle.database.spring.jsonduality;
4
4
5
-
importjava.util.UUID;
6
-
7
5
publicclassCourse {
8
6
privateString_id;
9
7
privateStringname;
10
8
privateStringdescription;
11
9
privateIntegercredits;
12
10
privateLectureHalllecture_hall;
13
11
14
-
publicstaticCoursecreateCourse() {
15
-
Coursecourse = newCourse();
16
-
course.set_id(UUID.randomUUID().toString());
17
-
returncourse;
18
-
}
19
-
20
12
publicCourse() {
21
13
}
22
14
@@ -67,4 +59,15 @@ public LectureHall getLecture_hall() {
Copy file name to clipboardexpand all lines: database/starters/oracle-spring-boot-starter-samples/oracle-spring-boot-sample-json-duality/src/main/java/com/oracle/database/spring/jsonduality/Enrollment.java
+8-8
Original file line number
Diff line number
Diff line change
@@ -2,18 +2,10 @@
2
2
// Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
Copy file name to clipboardexpand all lines: database/starters/oracle-spring-boot-starter-samples/oracle-spring-boot-sample-json-duality/src/main/java/com/oracle/database/spring/jsonduality/LectureHall.java
+8-8
Original file line number
Diff line number
Diff line change
@@ -2,18 +2,10 @@
2
2
// Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
Copy file name to clipboardexpand all lines: database/starters/oracle-spring-boot-starter-samples/oracle-spring-boot-sample-json-duality/src/main/java/com/oracle/database/spring/jsonduality/Student.java
Copy file name to clipboardexpand all lines: database/starters/oracle-spring-boot-starter-samples/oracle-spring-boot-sample-json-duality/src/test/java/com/oracle/database/spring/jsonduality/JSONDualitySampleApplicationTest.java
Copy file name to clipboardexpand all lines: database/starters/oracle-spring-boot-starter-samples/oracle-spring-boot-sample-json-events/README.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ The sample application test uses Testcontainers, and creates a temporary Oracle
16
16
To run application test, run the following command:
17
17
18
18
```shell
19
-
mvn test
19
+
mvn test -Dtest=JSONEventsSampleTest
20
20
```
21
21
22
22
The test starts a sensor data consumer, and sends a series of raw weather station events to the producer. The test verifies that the events have been processed and saved to the database, available in JSON Relational Duality View form.
Copy file name to clipboardexpand all lines: database/starters/oracle-spring-boot-starter-samples/oracle-spring-boot-sample-json-events/src/main/java/com/oracle/database/spring/jsonevents/OKafkaComponent.java
Copy file name to clipboardexpand all lines: database/starters/oracle-spring-boot-starter-samples/oracle-spring-boot-sample-json-events/src/main/java/com/oracle/database/spring/jsonevents/OKafkaConfiguration.java
+1
Original file line number
Diff line number
Diff line change
@@ -69,6 +69,7 @@ public Consumer<String, Sensor> okafkaConsumer() {
Copy file name to clipboardexpand all lines: database/starters/oracle-spring-boot-starter-samples/oracle-spring-boot-sample-json-events/src/main/java/com/oracle/database/spring/jsonevents/SensorConsumer.java
+13-2
Original file line number
Diff line number
Diff line change
@@ -20,25 +20,36 @@ public class SensorConsumer implements Runnable, AutoCloseable {
20
20
privatefinalStringtopic;
21
21
privatefinalSensorEnrichersensorEnricher;
22
22
privatefinalSensorServicesensorService;
23
+
// Used to end the consumer for example/testing purposes
Copy file name to clipboardexpand all lines: database/starters/oracle-spring-boot-starter-samples/oracle-spring-boot-sample-json-events/src/main/java/com/oracle/database/spring/jsonevents/SensorEventProducer.java
+1-1
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ public class SensorEventProducer implements AutoCloseable {
Copy file name to clipboardexpand all lines: database/starters/oracle-spring-boot-starter-samples/oracle-spring-boot-sample-json-events/src/main/resources/application.yaml
Copy file name to clipboardexpand all lines: database/starters/oracle-spring-boot-starter-samples/oracle-spring-boot-sample-json-events/src/test/java/com/oracle/database/spring/jsonevents/JSONEventsSampleTest.java
Copy file name to clipboardexpand all lines: database/starters/oracle-spring-boot-starter-samples/oracle-spring-boot-sample-okafka/src/main/java/com/oracle/database/spring/okafka/OKafkaConfiguration.java
+1
Original file line number
Diff line number
Diff line change
@@ -76,6 +76,7 @@ public SampleConsumer<String> sampleConsumer() {
Copy file name to clipboardexpand all lines: database/starters/oracle-spring-boot-starter-samples/oracle-spring-boot-sample-okafka/src/main/java/com/oracle/database/spring/okafka/SampleConsumer.java
+1-1
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ public void run() {
30
30
consumer.subscribe(List.of(topic));
31
31
intconsumedRecords = 0;
32
32
while (true) {
33
-
ConsumerRecords<String, T> records = consumer.poll(Duration.ofMillis(100));
33
+
ConsumerRecords<String, T> records = consumer.poll(Duration.ofMillis(500));
0 commit comments