Commit 17f9eebe23e8620e3e9b33b1c7c88a3c987b8d1e

Authored by Viacheslav Klimov
Committed by Andrew Shvayka
1 parent 0725a27d

Set serialVersionUIDs for cached entities

@@ -24,6 +24,8 @@ import java.io.Serializable; @@ -24,6 +24,8 @@ import java.io.Serializable;
24 @Data 24 @Data
25 public class ClaimData implements Serializable { 25 public class ClaimData implements Serializable {
26 26
  27 + private static final long serialVersionUID = -3922621193389915930L;
  28 +
27 private final String secretKey; 29 private final String secretKey;
28 private final long expirationTime; 30 private final long expirationTime;
29 31
@@ -39,6 +39,8 @@ import static org.thingsboard.server.common.data.SearchTextBasedWithAdditionalIn @@ -39,6 +39,8 @@ import static org.thingsboard.server.common.data.SearchTextBasedWithAdditionalIn
39 @Slf4j 39 @Slf4j
40 public class TenantProfile extends SearchTextBased<TenantProfileId> implements HasName { 40 public class TenantProfile extends SearchTextBased<TenantProfileId> implements HasName {
41 41
  42 + private static final long serialVersionUID = 3021989561267192281L;
  43 +
42 @NoXss 44 @NoXss
43 @ApiModelProperty(position = 3, value = "Name of the tenant profile", example = "High Priority Tenants") 45 @ApiModelProperty(position = 3, value = "Name of the tenant profile", example = "High Priority Tenants")
44 private String name; 46 private String name;
@@ -24,6 +24,8 @@ import java.util.Optional; @@ -24,6 +24,8 @@ import java.util.Optional;
24 */ 24 */
25 public class BaseAttributeKvEntry implements AttributeKvEntry { 25 public class BaseAttributeKvEntry implements AttributeKvEntry {
26 26
  27 + private static final long serialVersionUID = -6460767583563159407L;
  28 +
27 private final long lastUpdateTs; 29 private final long lastUpdateTs;
28 private final KvEntry kv; 30 private final KvEntry kv;
29 31
@@ -25,6 +25,8 @@ import java.io.Serializable; @@ -25,6 +25,8 @@ import java.io.Serializable;
25 @Data 25 @Data
26 public class SecuritySettings implements Serializable { 26 public class SecuritySettings implements Serializable {
27 27
  28 + private static final long serialVersionUID = -1307613974597312465L;
  29 +
28 @ApiModelProperty(position = 1, value = "The user password policy object." ) 30 @ApiModelProperty(position = 1, value = "The user password policy object." )
29 private UserPasswordPolicy passwordPolicy; 31 private UserPasswordPolicy passwordPolicy;
30 @ApiModelProperty(position = 2, value = "Maximum number of failed login attempts allowed before user account is locked." ) 32 @ApiModelProperty(position = 2, value = "Maximum number of failed login attempts allowed before user account is locked." )