From 00ccc78360001e3451dea3e7472babd111d7f904 Mon Sep 17 00:00:00 2001 From: Martin Kanis Date: Thu, 5 May 2022 15:42:39 +0200 Subject: [PATCH] Add index to entityVersion for all HotRod entities --- .../authSession/HotRodRootAuthenticationSessionEntity.java | 1 + .../models/map/storage/hotRod/client/HotRodClientEntity.java | 1 + .../map/storage/hotRod/clientscope/HotRodClientScopeEntity.java | 1 + .../models/map/storage/hotRod/group/HotRodGroupEntity.java | 1 + .../hotRod/loginFailure/HotRodUserLoginFailureEntity.java | 1 + .../models/map/storage/hotRod/realm/HotRodRealmEntity.java | 2 ++ .../models/map/storage/hotRod/role/HotRodRoleEntity.java | 1 + .../models/map/storage/hotRod/user/HotRodUserEntity.java | 1 + .../userSession/HotRodAuthenticatedClientSessionEntity.java | 1 + .../map/storage/hotRod/userSession/HotRodUserSessionEntity.java | 1 + 10 files changed, 11 insertions(+) diff --git a/model/map-hot-rod/src/main/java/org/keycloak/models/map/storage/hotRod/authSession/HotRodRootAuthenticationSessionEntity.java b/model/map-hot-rod/src/main/java/org/keycloak/models/map/storage/hotRod/authSession/HotRodRootAuthenticationSessionEntity.java index 5bc159c374..58bdee1eda 100644 --- a/model/map-hot-rod/src/main/java/org/keycloak/models/map/storage/hotRod/authSession/HotRodRootAuthenticationSessionEntity.java +++ b/model/map-hot-rod/src/main/java/org/keycloak/models/map/storage/hotRod/authSession/HotRodRootAuthenticationSessionEntity.java @@ -38,6 +38,7 @@ import java.util.Set; @ProtoDoc("@Indexed") public class HotRodRootAuthenticationSessionEntity extends AbstractHotRodEntity { + @ProtoDoc("@Field(index = Index.YES, store = Store.YES)") @ProtoField(number = 1, required = true) public int entityVersion = 1; diff --git a/model/map-hot-rod/src/main/java/org/keycloak/models/map/storage/hotRod/client/HotRodClientEntity.java b/model/map-hot-rod/src/main/java/org/keycloak/models/map/storage/hotRod/client/HotRodClientEntity.java index f0d28f670e..2ba0d85f50 100644 --- a/model/map-hot-rod/src/main/java/org/keycloak/models/map/storage/hotRod/client/HotRodClientEntity.java +++ b/model/map-hot-rod/src/main/java/org/keycloak/models/map/storage/hotRod/client/HotRodClientEntity.java @@ -41,6 +41,7 @@ import java.util.stream.Stream; @ProtoDoc("@Indexed") public class HotRodClientEntity extends AbstractHotRodEntity { + @ProtoDoc("@Field(index = Index.YES, store = Store.YES)") @ProtoField(number = 1, required = true) public int entityVersion = 1; diff --git a/model/map-hot-rod/src/main/java/org/keycloak/models/map/storage/hotRod/clientscope/HotRodClientScopeEntity.java b/model/map-hot-rod/src/main/java/org/keycloak/models/map/storage/hotRod/clientscope/HotRodClientScopeEntity.java index 1211390c0b..0fa13aba7c 100644 --- a/model/map-hot-rod/src/main/java/org/keycloak/models/map/storage/hotRod/clientscope/HotRodClientScopeEntity.java +++ b/model/map-hot-rod/src/main/java/org/keycloak/models/map/storage/hotRod/clientscope/HotRodClientScopeEntity.java @@ -40,6 +40,7 @@ import java.util.Set; @ProtoDoc("@Indexed") public class HotRodClientScopeEntity extends AbstractHotRodEntity { + @ProtoDoc("@Field(index = Index.YES, store = Store.YES)") @ProtoField(number = 1, required = true) public int entityVersion = 1; diff --git a/model/map-hot-rod/src/main/java/org/keycloak/models/map/storage/hotRod/group/HotRodGroupEntity.java b/model/map-hot-rod/src/main/java/org/keycloak/models/map/storage/hotRod/group/HotRodGroupEntity.java index 9098ed0a7b..d96926ee36 100644 --- a/model/map-hot-rod/src/main/java/org/keycloak/models/map/storage/hotRod/group/HotRodGroupEntity.java +++ b/model/map-hot-rod/src/main/java/org/keycloak/models/map/storage/hotRod/group/HotRodGroupEntity.java @@ -60,6 +60,7 @@ public class HotRodGroupEntity extends AbstractHotRodEntity { } } + @ProtoDoc("@Field(index = Index.YES, store = Store.YES)") @ProtoField(number = 1, required = true) public int entityVersion = 1; diff --git a/model/map-hot-rod/src/main/java/org/keycloak/models/map/storage/hotRod/loginFailure/HotRodUserLoginFailureEntity.java b/model/map-hot-rod/src/main/java/org/keycloak/models/map/storage/hotRod/loginFailure/HotRodUserLoginFailureEntity.java index 51b0e30e3a..2df6b6c0b2 100644 --- a/model/map-hot-rod/src/main/java/org/keycloak/models/map/storage/hotRod/loginFailure/HotRodUserLoginFailureEntity.java +++ b/model/map-hot-rod/src/main/java/org/keycloak/models/map/storage/hotRod/loginFailure/HotRodUserLoginFailureEntity.java @@ -31,6 +31,7 @@ import org.keycloak.models.map.storage.hotRod.common.UpdatableHotRodEntityDelega @ProtoDoc("@Indexed") public class HotRodUserLoginFailureEntity extends AbstractHotRodEntity { + @ProtoDoc("@Field(index = Index.YES, store = Store.YES)") @ProtoField(number = 1, required = true) public int entityVersion = 1; diff --git a/model/map-hot-rod/src/main/java/org/keycloak/models/map/storage/hotRod/realm/HotRodRealmEntity.java b/model/map-hot-rod/src/main/java/org/keycloak/models/map/storage/hotRod/realm/HotRodRealmEntity.java index d853c4e459..771c58cadc 100644 --- a/model/map-hot-rod/src/main/java/org/keycloak/models/map/storage/hotRod/realm/HotRodRealmEntity.java +++ b/model/map-hot-rod/src/main/java/org/keycloak/models/map/storage/hotRod/realm/HotRodRealmEntity.java @@ -70,6 +70,8 @@ import java.util.stream.Collectors; ) @ProtoDoc("@Indexed") public class HotRodRealmEntity extends AbstractHotRodEntity { + + @ProtoDoc("@Field(index = Index.YES, store = Store.YES)") @ProtoField(number = 1, required = true) public int entityVersion = 1; diff --git a/model/map-hot-rod/src/main/java/org/keycloak/models/map/storage/hotRod/role/HotRodRoleEntity.java b/model/map-hot-rod/src/main/java/org/keycloak/models/map/storage/hotRod/role/HotRodRoleEntity.java index 3ad5c0d2df..0e68d18c97 100644 --- a/model/map-hot-rod/src/main/java/org/keycloak/models/map/storage/hotRod/role/HotRodRoleEntity.java +++ b/model/map-hot-rod/src/main/java/org/keycloak/models/map/storage/hotRod/role/HotRodRoleEntity.java @@ -58,6 +58,7 @@ public class HotRodRoleEntity extends AbstractHotRodEntity { } } + @ProtoDoc("@Field(index = Index.YES, store = Store.YES)") @ProtoField(number = 1, required = true) public int entityVersion = 1; diff --git a/model/map-hot-rod/src/main/java/org/keycloak/models/map/storage/hotRod/user/HotRodUserEntity.java b/model/map-hot-rod/src/main/java/org/keycloak/models/map/storage/hotRod/user/HotRodUserEntity.java index c08740d57b..81a3364527 100644 --- a/model/map-hot-rod/src/main/java/org/keycloak/models/map/storage/hotRod/user/HotRodUserEntity.java +++ b/model/map-hot-rod/src/main/java/org/keycloak/models/map/storage/hotRod/user/HotRodUserEntity.java @@ -50,6 +50,7 @@ public class HotRodUserEntity extends AbstractHotRodEntity { @IgnoreForEntityImplementationGenerator private static final Logger LOG = Logger.getLogger(HotRodUserEntity.class); + @ProtoDoc("@Field(index = Index.YES, store = Store.YES)") @ProtoField(number = 1, required = true) public int entityVersion = 1; diff --git a/model/map-hot-rod/src/main/java/org/keycloak/models/map/storage/hotRod/userSession/HotRodAuthenticatedClientSessionEntity.java b/model/map-hot-rod/src/main/java/org/keycloak/models/map/storage/hotRod/userSession/HotRodAuthenticatedClientSessionEntity.java index 3602ac9222..56811877b0 100644 --- a/model/map-hot-rod/src/main/java/org/keycloak/models/map/storage/hotRod/userSession/HotRodAuthenticatedClientSessionEntity.java +++ b/model/map-hot-rod/src/main/java/org/keycloak/models/map/storage/hotRod/userSession/HotRodAuthenticatedClientSessionEntity.java @@ -34,6 +34,7 @@ import java.util.Set; @ProtoDoc("@Indexed") public class HotRodAuthenticatedClientSessionEntity extends AbstractHotRodEntity { + @ProtoDoc("@Field(index = Index.YES, store = Store.YES)") @ProtoField(number = 1, required = true) public int entityVersion = 1; diff --git a/model/map-hot-rod/src/main/java/org/keycloak/models/map/storage/hotRod/userSession/HotRodUserSessionEntity.java b/model/map-hot-rod/src/main/java/org/keycloak/models/map/storage/hotRod/userSession/HotRodUserSessionEntity.java index 20289f7f32..22e849e452 100644 --- a/model/map-hot-rod/src/main/java/org/keycloak/models/map/storage/hotRod/userSession/HotRodUserSessionEntity.java +++ b/model/map-hot-rod/src/main/java/org/keycloak/models/map/storage/hotRod/userSession/HotRodUserSessionEntity.java @@ -35,6 +35,7 @@ import java.util.Set; @ProtoDoc("@Indexed") public class HotRodUserSessionEntity extends AbstractHotRodEntity { + @ProtoDoc("@Field(index = Index.YES, store = Store.YES)") @ProtoField(number = 1, required = true) public int entityVersion = 1;