From 49d2efbfb28b695d03b0266441832f05a0496104 Mon Sep 17 00:00:00 2001 From: Alexander Schwartz Date: Fri, 16 Aug 2024 10:12:33 +0200 Subject: [PATCH] Specify version column name in a case-sensitive manner (#32169) Closes #32127 Signed-off-by: Alexander Schwartz --- .../models/jpa/session/PersistentClientSessionEntity.java | 1 + .../keycloak/models/jpa/session/PersistentUserSessionEntity.java | 1 + 2 files changed, 2 insertions(+) diff --git a/model/jpa/src/main/java/org/keycloak/models/jpa/session/PersistentClientSessionEntity.java b/model/jpa/src/main/java/org/keycloak/models/jpa/session/PersistentClientSessionEntity.java index 265aa0391c..892b8022a5 100644 --- a/model/jpa/src/main/java/org/keycloak/models/jpa/session/PersistentClientSessionEntity.java +++ b/model/jpa/src/main/java/org/keycloak/models/jpa/session/PersistentClientSessionEntity.java @@ -75,6 +75,7 @@ public class PersistentClientSessionEntity { protected int timestamp; @Version + @Column(name="VERSION") private int version; @Id diff --git a/model/jpa/src/main/java/org/keycloak/models/jpa/session/PersistentUserSessionEntity.java b/model/jpa/src/main/java/org/keycloak/models/jpa/session/PersistentUserSessionEntity.java index 4facb253db..957eeddd5e 100644 --- a/model/jpa/src/main/java/org/keycloak/models/jpa/session/PersistentUserSessionEntity.java +++ b/model/jpa/src/main/java/org/keycloak/models/jpa/session/PersistentUserSessionEntity.java @@ -86,6 +86,7 @@ public class PersistentUserSessionEntity { protected String brokerSessionId; @Version + @Column(name="VERSION") private int version; @Id