Set serialVersionUIDs for cached entities

This commit is contained in:
Viacheslav Klimov 2021-11-04 12:09:07 +02:00 committed by Andrew Shvayka
parent 0725a27d51
commit 17f9eebe23
4 changed files with 8 additions and 0 deletions

View File

@ -24,6 +24,8 @@ import java.io.Serializable;
@Data @Data
public class ClaimData implements Serializable { public class ClaimData implements Serializable {
private static final long serialVersionUID = -3922621193389915930L;
private final String secretKey; private final String secretKey;
private final long expirationTime; private final long expirationTime;

View File

@ -39,6 +39,8 @@ import static org.thingsboard.server.common.data.SearchTextBasedWithAdditionalIn
@Slf4j @Slf4j
public class TenantProfile extends SearchTextBased<TenantProfileId> implements HasName { public class TenantProfile extends SearchTextBased<TenantProfileId> implements HasName {
private static final long serialVersionUID = 3021989561267192281L;
@NoXss @NoXss
@ApiModelProperty(position = 3, value = "Name of the tenant profile", example = "High Priority Tenants") @ApiModelProperty(position = 3, value = "Name of the tenant profile", example = "High Priority Tenants")
private String name; private String name;

View File

@ -24,6 +24,8 @@ import java.util.Optional;
*/ */
public class BaseAttributeKvEntry implements AttributeKvEntry { public class BaseAttributeKvEntry implements AttributeKvEntry {
private static final long serialVersionUID = -6460767583563159407L;
private final long lastUpdateTs; private final long lastUpdateTs;
private final KvEntry kv; private final KvEntry kv;

View File

@ -25,6 +25,8 @@ import java.io.Serializable;
@Data @Data
public class SecuritySettings implements Serializable { public class SecuritySettings implements Serializable {
private static final long serialVersionUID = -1307613974597312465L;
@ApiModelProperty(position = 1, value = "The user password policy object." ) @ApiModelProperty(position = 1, value = "The user password policy object." )
private UserPasswordPolicy passwordPolicy; private UserPasswordPolicy passwordPolicy;
@ApiModelProperty(position = 2, value = "Maximum number of failed login attempts allowed before user account is locked." ) @ApiModelProperty(position = 2, value = "Maximum number of failed login attempts allowed before user account is locked." )