Skip to content

Commit 45f5ee8

Browse files
authored
Fix json view to use expected identifier field name _id (#370)
* Update json view to use expected identifier column name * Update micronaut-data version to 4.8.0 * Update build.gradle * Update Micronaut dependencies
1 parent ea363b4 commit 45f5ee8

File tree

5 files changed

+5
-6
lines changed

5 files changed

+5
-6
lines changed

java/micronaut-jsonview-demo-app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
plugins {
22
id "com.github.johnrengelman.shadow" version "8.1.1"
3-
id "io.micronaut.application" version "4.0.2"
4-
id "io.micronaut.test-resources" version "4.0.2"
3+
id "io.micronaut.application" version "4.4.0"
4+
id "io.micronaut.test-resources" version "4.4.0"
55
}
66

77
version = "0.1"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
micronautVersion=4.0.5
1+
micronautVersion=4.5.0
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
44
networkTimeout=10000
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists

java/micronaut-jsonview-demo-app/src/main/resources/application.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ datasources:
1111
test-resources:
1212
containers:
1313
oracle:
14-
image-name: gvenzl/oracle-free:latest
1514
startup-timeout: 360s
1615
db-name: test
1716
flyway:

java/micronaut-jsonview-demo-app/src/main/resources/db/migration/V2__view.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
CREATE OR REPLACE JSON RELATIONAL DUALITY VIEW "STUDENT_SCHEDULE" AS -- <1>
77
SELECT JSON{
8-
'studentId': s."ID", -- <2>
8+
'_id': s."ID", -- <2>
99
'student': s."NAME" WITH UPDATE, -- <3>
1010
'averageGrade': s."AVERAGE_GRADE" WITH UPDATE,
1111
'schedule': [SELECT JSON{'id': sc."ID", -- <4>

0 commit comments

Comments
 (0)