Make all fields in HotRod store optional

This commit is contained in:
Martin Kanis 2022-05-05 16:47:15 +02:00 committed by Hynek Mlnařík
parent 58956aa0b4
commit 0e9f2badff
10 changed files with 29 additions and 29 deletions

View file

@ -39,10 +39,10 @@ import java.util.Set;
public class HotRodRootAuthenticationSessionEntity extends AbstractHotRodEntity {
@ProtoDoc("@Field(index = Index.YES, store = Store.YES)")
@ProtoField(number = 1, required = true)
public int entityVersion = 1;
@ProtoField(number = 1)
public Integer entityVersion = 1;
@ProtoField(number = 2, required = true)
@ProtoField(number = 2)
public String id;
@ProtoDoc("@Field(index = Index.YES, store = Store.YES)")

View file

@ -42,11 +42,11 @@ import java.util.stream.Stream;
public class HotRodClientEntity extends AbstractHotRodEntity {
@ProtoDoc("@Field(index = Index.YES, store = Store.YES)")
@ProtoField(number = 1, required = true)
public int entityVersion = 1;
@ProtoField(number = 1)
public Integer entityVersion = 1;
@ProtoDoc("@Field(index = Index.YES, store = Store.YES)")
@ProtoField(number = 2, required = true)
@ProtoField(number = 2)
public String id;
@ProtoDoc("@Field(index = Index.YES, store = Store.YES)")

View file

@ -41,10 +41,10 @@ import java.util.Set;
public class HotRodClientScopeEntity extends AbstractHotRodEntity {
@ProtoDoc("@Field(index = Index.YES, store = Store.YES)")
@ProtoField(number = 1, required = true)
public int entityVersion = 1;
@ProtoField(number = 1)
public Integer entityVersion = 1;
@ProtoField(number = 2, required = true)
@ProtoField(number = 2)
public String id;
@ProtoDoc("@Field(index = Index.YES, store = Store.YES)")

View file

@ -61,11 +61,11 @@ public class HotRodGroupEntity extends AbstractHotRodEntity {
}
@ProtoDoc("@Field(index = Index.YES, store = Store.YES)")
@ProtoField(number = 1, required = true)
public int entityVersion = 1;
@ProtoField(number = 1)
public Integer entityVersion = 1;
@ProtoDoc("@Field(index = Index.YES, store = Store.YES)")
@ProtoField(number = 2, required = true)
@ProtoField(number = 2)
public String id;
@ProtoDoc("@Field(index = Index.YES, store = Store.YES)")

View file

@ -32,10 +32,10 @@ import org.keycloak.models.map.storage.hotRod.common.UpdatableHotRodEntityDelega
public class HotRodUserLoginFailureEntity extends AbstractHotRodEntity {
@ProtoDoc("@Field(index = Index.YES, store = Store.YES)")
@ProtoField(number = 1, required = true)
public int entityVersion = 1;
@ProtoField(number = 1)
public Integer entityVersion = 1;
@ProtoField(number = 2, required = true)
@ProtoField(number = 2)
public String id;
@ProtoDoc("@Field(index = Index.YES, store = Store.YES)")

View file

@ -72,8 +72,8 @@ import java.util.stream.Collectors;
public class HotRodRealmEntity extends AbstractHotRodEntity {
@ProtoDoc("@Field(index = Index.YES, store = Store.YES)")
@ProtoField(number = 1, required = true)
public int entityVersion = 1;
@ProtoField(number = 1)
public Integer entityVersion = 1;
@ProtoField(number = 2)
public String id;

View file

@ -59,11 +59,11 @@ public class HotRodRoleEntity extends AbstractHotRodEntity {
}
@ProtoDoc("@Field(index = Index.YES, store = Store.YES)")
@ProtoField(number = 1, required = true)
public int entityVersion = 1;
@ProtoField(number = 1)
public Integer entityVersion = 1;
@ProtoDoc("@Field(index = Index.YES, store = Store.YES)")
@ProtoField(number = 2, required = true)
@ProtoField(number = 2)
public String id;
@ProtoDoc("@Field(index = Index.YES, store = Store.YES)")

View file

@ -51,11 +51,11 @@ public class HotRodUserEntity extends AbstractHotRodEntity {
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;
@ProtoField(number = 1)
public Integer entityVersion = 1;
@ProtoDoc("@Field(index = Index.YES, store = Store.YES)")
@ProtoField(number = 2, required = true)
@ProtoField(number = 2)
public String id;
@ProtoDoc("@Field(index = Index.YES, store = Store.YES)")

View file

@ -35,11 +35,11 @@ import java.util.Set;
public class HotRodAuthenticatedClientSessionEntity extends AbstractHotRodEntity {
@ProtoDoc("@Field(index = Index.YES, store = Store.YES)")
@ProtoField(number = 1, required = true)
public int entityVersion = 1;
@ProtoField(number = 1)
public Integer entityVersion = 1;
@ProtoDoc("@Field(index = Index.YES, store = Store.YES)")
@ProtoField(number = 2, required = true)
@ProtoField(number = 2)
public String id;
@ProtoDoc("@Field(index = Index.YES, store = Store.YES)")

View file

@ -36,10 +36,10 @@ import java.util.Set;
public class HotRodUserSessionEntity extends AbstractHotRodEntity {
@ProtoDoc("@Field(index = Index.YES, store = Store.YES)")
@ProtoField(number = 1, required = true)
public int entityVersion = 1;
@ProtoField(number = 1)
public Integer entityVersion = 1;
@ProtoField(number = 2, required = true)
@ProtoField(number = 2)
public String id;
@ProtoDoc("@Field(index = Index.YES, store = Store.YES)")