Make all fields in HotRod store optional
This commit is contained in:
parent
58956aa0b4
commit
0e9f2badff
10 changed files with 29 additions and 29 deletions
|
@ -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)")
|
||||
|
|
|
@ -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)")
|
||||
|
|
|
@ -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)")
|
||||
|
|
|
@ -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)")
|
||||
|
|
|
@ -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)")
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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)")
|
||||
|
|
|
@ -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)")
|
||||
|
|
|
@ -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)")
|
||||
|
|
|
@ -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)")
|
||||
|
|
Loading…
Reference in a new issue