Commit b88ce86638272641f2a83b09ce4cf1e56d62c36c
1 parent
3c47789a
Data annotation contains toString, equals and hashcode impls
Showing
29 changed files
with
11 additions
and
106 deletions
... | ... | @@ -18,9 +18,9 @@ package org.thingsboard.server.dao.device; |
18 | 18 | import lombok.Data; |
19 | 19 | import org.thingsboard.server.common.data.EntityType; |
20 | 20 | import org.thingsboard.server.common.data.relation.EntityRelation; |
21 | -import org.thingsboard.server.dao.relation.RelationsSearchParameters; | |
22 | 21 | import org.thingsboard.server.dao.relation.EntityRelationsQuery; |
23 | 22 | import org.thingsboard.server.dao.relation.EntityTypeFilter; |
23 | +import org.thingsboard.server.dao.relation.RelationsSearchParameters; | |
24 | 24 | |
25 | 25 | import javax.annotation.Nullable; |
26 | 26 | import java.util.Collections; | ... | ... |
... | ... | @@ -18,8 +18,6 @@ package org.thingsboard.server.dao.model.sql; |
18 | 18 | import com.datastax.driver.core.utils.UUIDs; |
19 | 19 | import com.fasterxml.jackson.databind.JsonNode; |
20 | 20 | import lombok.Data; |
21 | -import lombok.EqualsAndHashCode; | |
22 | -import lombok.ToString; | |
23 | 21 | import org.hibernate.annotations.Type; |
24 | 22 | import org.hibernate.annotations.TypeDef; |
25 | 23 | import org.thingsboard.server.common.data.AdminSettings; |
... | ... | @@ -36,8 +34,6 @@ import static org.thingsboard.server.dao.model.ModelConstants.*; |
36 | 34 | @Entity |
37 | 35 | @TypeDef(name = "json", typeClass = JsonStringType.class) |
38 | 36 | @Table(name = ADMIN_SETTINGS_COLUMN_FAMILY_NAME) |
39 | -@EqualsAndHashCode | |
40 | -@ToString | |
41 | 37 | public final class AdminSettingsEntity implements BaseEntity<AdminSettings> { |
42 | 38 | |
43 | 39 | @Transient | ... | ... |
... | ... | @@ -18,8 +18,6 @@ package org.thingsboard.server.dao.model.sql; |
18 | 18 | import com.datastax.driver.core.utils.UUIDs; |
19 | 19 | import com.fasterxml.jackson.databind.JsonNode; |
20 | 20 | import lombok.Data; |
21 | -import lombok.EqualsAndHashCode; | |
22 | -import lombok.ToString; | |
23 | 21 | import org.hibernate.annotations.Type; |
24 | 22 | import org.hibernate.annotations.TypeDef; |
25 | 23 | import org.thingsboard.server.common.data.EntityType; |
... | ... | @@ -31,7 +29,6 @@ import org.thingsboard.server.common.data.id.EntityIdFactory; |
31 | 29 | import org.thingsboard.server.common.data.id.TenantId; |
32 | 30 | import org.thingsboard.server.dao.model.BaseEntity; |
33 | 31 | import org.thingsboard.server.dao.model.ModelConstants; |
34 | -import org.thingsboard.server.dao.util.JacksonUtil; | |
35 | 32 | import org.thingsboard.server.dao.util.JsonStringType; |
36 | 33 | |
37 | 34 | import javax.persistence.*; |
... | ... | @@ -43,8 +40,6 @@ import static org.thingsboard.server.dao.model.ModelConstants.*; |
43 | 40 | @Entity |
44 | 41 | @TypeDef(name = "json", typeClass = JsonStringType.class) |
45 | 42 | @Table(name = ALARM_COLUMN_FAMILY_NAME) |
46 | -@EqualsAndHashCode | |
47 | -@ToString | |
48 | 43 | public final class AlarmEntity implements BaseEntity<Alarm> { |
49 | 44 | |
50 | 45 | @Transient | ... | ... |
... | ... | @@ -18,8 +18,6 @@ package org.thingsboard.server.dao.model.sql; |
18 | 18 | import com.datastax.driver.core.utils.UUIDs; |
19 | 19 | import com.fasterxml.jackson.databind.JsonNode; |
20 | 20 | import lombok.Data; |
21 | -import lombok.EqualsAndHashCode; | |
22 | -import lombok.ToString; | |
23 | 21 | import org.hibernate.annotations.Type; |
24 | 22 | import org.hibernate.annotations.TypeDef; |
25 | 23 | import org.thingsboard.server.common.data.asset.Asset; |
... | ... | @@ -28,7 +26,6 @@ import org.thingsboard.server.common.data.id.CustomerId; |
28 | 26 | import org.thingsboard.server.common.data.id.TenantId; |
29 | 27 | import org.thingsboard.server.dao.model.ModelConstants; |
30 | 28 | import org.thingsboard.server.dao.model.SearchTextEntity; |
31 | -import org.thingsboard.server.dao.util.JacksonUtil; | |
32 | 29 | import org.thingsboard.server.dao.util.JsonStringType; |
33 | 30 | |
34 | 31 | import javax.persistence.*; |
... | ... | @@ -40,8 +37,6 @@ import static org.thingsboard.server.dao.model.ModelConstants.*; |
40 | 37 | @Entity |
41 | 38 | @TypeDef(name = "json", typeClass = JsonStringType.class) |
42 | 39 | @Table(name = ASSET_COLUMN_FAMILY_NAME) |
43 | -@EqualsAndHashCode | |
44 | -@ToString | |
45 | 40 | public final class AssetEntity implements SearchTextEntity<Asset> { |
46 | 41 | |
47 | 42 | @Transient | ... | ... |
... | ... | @@ -15,7 +15,9 @@ |
15 | 15 | */ |
16 | 16 | package org.thingsboard.server.dao.model.sql; |
17 | 17 | |
18 | -import lombok.*; | |
18 | +import lombok.AllArgsConstructor; | |
19 | +import lombok.Data; | |
20 | +import lombok.NoArgsConstructor; | |
19 | 21 | |
20 | 22 | import java.io.Serializable; |
21 | 23 | import java.util.UUID; |
... | ... | @@ -23,8 +25,6 @@ import java.util.UUID; |
23 | 25 | @Data |
24 | 26 | @AllArgsConstructor |
25 | 27 | @NoArgsConstructor |
26 | -@EqualsAndHashCode | |
27 | -@ToString | |
28 | 28 | public class AttributeKvCompositeKey implements Serializable { |
29 | 29 | private String entityType; |
30 | 30 | private UUID entityId; | ... | ... |
... | ... | @@ -16,8 +16,6 @@ |
16 | 16 | package org.thingsboard.server.dao.model.sql; |
17 | 17 | |
18 | 18 | import lombok.Data; |
19 | -import lombok.EqualsAndHashCode; | |
20 | -import lombok.ToString; | |
21 | 19 | import org.thingsboard.server.common.data.kv.*; |
22 | 20 | import org.thingsboard.server.dao.model.ToData; |
23 | 21 | |
... | ... | @@ -31,8 +29,6 @@ import static org.thingsboard.server.dao.model.ModelConstants.*; |
31 | 29 | @Entity |
32 | 30 | @Table(name = "attribute_kv") |
33 | 31 | @IdClass(AttributeKvCompositeKey.class) |
34 | -@EqualsAndHashCode | |
35 | -@ToString | |
36 | 32 | public class AttributeKvEntity implements ToData<AttributeKvEntry>, Serializable { |
37 | 33 | |
38 | 34 | @Id | ... | ... |
... | ... | @@ -17,8 +17,6 @@ package org.thingsboard.server.dao.model.sql; |
17 | 17 | |
18 | 18 | import com.fasterxml.jackson.databind.JsonNode; |
19 | 19 | import lombok.Data; |
20 | -import lombok.EqualsAndHashCode; | |
21 | -import lombok.ToString; | |
22 | 20 | import org.hibernate.annotations.Type; |
23 | 21 | import org.hibernate.annotations.TypeDef; |
24 | 22 | import org.thingsboard.server.common.data.id.ComponentDescriptorId; |
... | ... | @@ -36,8 +34,6 @@ import java.util.UUID; |
36 | 34 | @Entity |
37 | 35 | @TypeDef(name = "json", typeClass = JsonStringType.class) |
38 | 36 | @Table(name = ModelConstants.COMPONENT_DESCRIPTOR_COLUMN_FAMILY_NAME) |
39 | -@EqualsAndHashCode | |
40 | -@ToString | |
41 | 37 | public class ComponentDescriptorEntity implements SearchTextEntity<ComponentDescriptor> { |
42 | 38 | |
43 | 39 | @Transient | ... | ... |
... | ... | @@ -18,8 +18,6 @@ package org.thingsboard.server.dao.model.sql; |
18 | 18 | import com.datastax.driver.core.utils.UUIDs; |
19 | 19 | import com.fasterxml.jackson.databind.JsonNode; |
20 | 20 | import lombok.Data; |
21 | -import lombok.EqualsAndHashCode; | |
22 | -import lombok.ToString; | |
23 | 21 | import org.hibernate.annotations.Type; |
24 | 22 | import org.hibernate.annotations.TypeDef; |
25 | 23 | import org.thingsboard.server.common.data.Customer; |
... | ... | @@ -36,8 +34,6 @@ import java.util.UUID; |
36 | 34 | @Entity |
37 | 35 | @TypeDef(name = "json", typeClass = JsonStringType.class) |
38 | 36 | @Table(name = ModelConstants.CUSTOMER_COLUMN_FAMILY_NAME) |
39 | -@EqualsAndHashCode | |
40 | -@ToString | |
41 | 37 | public final class CustomerEntity implements SearchTextEntity<Customer> { |
42 | 38 | |
43 | 39 | @Transient | ... | ... |
... | ... | @@ -18,8 +18,6 @@ package org.thingsboard.server.dao.model.sql; |
18 | 18 | import com.datastax.driver.core.utils.UUIDs; |
19 | 19 | import com.fasterxml.jackson.databind.JsonNode; |
20 | 20 | import lombok.Data; |
21 | -import lombok.EqualsAndHashCode; | |
22 | -import lombok.ToString; | |
23 | 21 | import org.hibernate.annotations.Type; |
24 | 22 | import org.hibernate.annotations.TypeDef; |
25 | 23 | import org.thingsboard.server.common.data.Dashboard; |
... | ... | @@ -37,8 +35,6 @@ import java.util.UUID; |
37 | 35 | @Entity |
38 | 36 | @TypeDef(name = "json", typeClass = JsonStringType.class) |
39 | 37 | @Table(name = ModelConstants.DASHBOARD_COLUMN_FAMILY_NAME) |
40 | -@EqualsAndHashCode | |
41 | -@ToString | |
42 | 38 | public final class DashboardEntity implements SearchTextEntity<Dashboard> { |
43 | 39 | |
44 | 40 | @Transient | ... | ... |
... | ... | @@ -17,8 +17,6 @@ package org.thingsboard.server.dao.model.sql; |
17 | 17 | |
18 | 18 | import com.datastax.driver.core.utils.UUIDs; |
19 | 19 | import lombok.Data; |
20 | -import lombok.EqualsAndHashCode; | |
21 | -import lombok.ToString; | |
22 | 20 | import org.thingsboard.server.common.data.DashboardInfo; |
23 | 21 | import org.thingsboard.server.common.data.id.CustomerId; |
24 | 22 | import org.thingsboard.server.common.data.id.DashboardId; |
... | ... | @@ -32,8 +30,6 @@ import java.util.UUID; |
32 | 30 | @Data |
33 | 31 | @Entity |
34 | 32 | @Table(name = ModelConstants.DASHBOARD_COLUMN_FAMILY_NAME) |
35 | -@EqualsAndHashCode | |
36 | -@ToString | |
37 | 33 | public class DashboardInfoEntity implements SearchTextEntity<DashboardInfo> { |
38 | 34 | |
39 | 35 | @Transient | ... | ... |
... | ... | @@ -17,8 +17,6 @@ package org.thingsboard.server.dao.model.sql; |
17 | 17 | |
18 | 18 | import com.datastax.driver.core.utils.UUIDs; |
19 | 19 | import lombok.Data; |
20 | -import lombok.EqualsAndHashCode; | |
21 | -import lombok.ToString; | |
22 | 20 | import org.thingsboard.server.common.data.id.DeviceCredentialsId; |
23 | 21 | import org.thingsboard.server.common.data.id.DeviceId; |
24 | 22 | import org.thingsboard.server.common.data.security.DeviceCredentials; |
... | ... | @@ -32,8 +30,6 @@ import java.util.UUID; |
32 | 30 | @Data |
33 | 31 | @Entity |
34 | 32 | @Table(name = ModelConstants.DEVICE_CREDENTIALS_COLUMN_FAMILY_NAME) |
35 | -@EqualsAndHashCode | |
36 | -@ToString | |
37 | 33 | public final class DeviceCredentialsEntity implements BaseEntity<DeviceCredentials> { |
38 | 34 | |
39 | 35 | @Transient | ... | ... |
... | ... | @@ -18,8 +18,6 @@ package org.thingsboard.server.dao.model.sql; |
18 | 18 | import com.datastax.driver.core.utils.UUIDs; |
19 | 19 | import com.fasterxml.jackson.databind.JsonNode; |
20 | 20 | import lombok.Data; |
21 | -import lombok.EqualsAndHashCode; | |
22 | -import lombok.ToString; | |
23 | 21 | import org.hibernate.annotations.Type; |
24 | 22 | import org.hibernate.annotations.TypeDef; |
25 | 23 | import org.thingsboard.server.common.data.Device; |
... | ... | @@ -37,8 +35,6 @@ import java.util.UUID; |
37 | 35 | @Entity |
38 | 36 | @TypeDef(name = "json", typeClass = JsonStringType.class) |
39 | 37 | @Table(name = ModelConstants.DEVICE_COLUMN_FAMILY_NAME) |
40 | -@EqualsAndHashCode | |
41 | -@ToString | |
42 | 38 | public final class DeviceEntity implements SearchTextEntity<Device> { |
43 | 39 | |
44 | 40 | @Transient | ... | ... |
... | ... | @@ -18,9 +18,7 @@ package org.thingsboard.server.dao.model.sql; |
18 | 18 | import com.datastax.driver.core.utils.UUIDs; |
19 | 19 | import com.fasterxml.jackson.databind.JsonNode; |
20 | 20 | import lombok.Data; |
21 | -import lombok.EqualsAndHashCode; | |
22 | 21 | import lombok.NoArgsConstructor; |
23 | -import lombok.ToString; | |
24 | 22 | import org.hibernate.annotations.Type; |
25 | 23 | import org.hibernate.annotations.TypeDef; |
26 | 24 | import org.thingsboard.server.common.data.EntityType; |
... | ... | @@ -39,8 +37,6 @@ import static org.thingsboard.server.dao.model.ModelConstants.*; |
39 | 37 | @TypeDef(name = "json", typeClass = JsonStringType.class) |
40 | 38 | @Table(name = EVENT_COLUMN_FAMILY_NAME) |
41 | 39 | @NoArgsConstructor |
42 | -@EqualsAndHashCode | |
43 | -@ToString | |
44 | 40 | public class EventEntity implements BaseEntity<Event> { |
45 | 41 | |
46 | 42 | @Transient | ... | ... |
... | ... | @@ -18,8 +18,6 @@ package org.thingsboard.server.dao.model.sql; |
18 | 18 | import com.datastax.driver.core.utils.UUIDs; |
19 | 19 | import com.fasterxml.jackson.databind.JsonNode; |
20 | 20 | import lombok.Data; |
21 | -import lombok.EqualsAndHashCode; | |
22 | -import lombok.ToString; | |
23 | 21 | import org.hibernate.annotations.Type; |
24 | 22 | import org.hibernate.annotations.TypeDef; |
25 | 23 | import org.thingsboard.server.common.data.id.PluginId; |
... | ... | @@ -37,8 +35,6 @@ import java.util.UUID; |
37 | 35 | @Entity |
38 | 36 | @TypeDef(name = "json", typeClass = JsonStringType.class) |
39 | 37 | @Table(name = ModelConstants.PLUGIN_COLUMN_FAMILY_NAME) |
40 | -@EqualsAndHashCode | |
41 | -@ToString | |
42 | 38 | public class PluginMetaDataEntity implements SearchTextEntity<PluginMetaData> { |
43 | 39 | |
44 | 40 | @Transient | ... | ... |
... | ... | @@ -15,7 +15,9 @@ |
15 | 15 | */ |
16 | 16 | package org.thingsboard.server.dao.model.sql; |
17 | 17 | |
18 | -import lombok.*; | |
18 | +import lombok.AllArgsConstructor; | |
19 | +import lombok.Data; | |
20 | +import lombok.NoArgsConstructor; | |
19 | 21 | import org.thingsboard.server.common.data.relation.EntityRelation; |
20 | 22 | |
21 | 23 | import javax.persistence.Transient; |
... | ... | @@ -25,8 +27,6 @@ import java.util.UUID; |
25 | 27 | @NoArgsConstructor |
26 | 28 | @AllArgsConstructor |
27 | 29 | @Data |
28 | -@EqualsAndHashCode | |
29 | -@ToString | |
30 | 30 | public class RelationCompositeKey implements Serializable { |
31 | 31 | |
32 | 32 | @Transient | ... | ... |
... | ... | @@ -17,8 +17,6 @@ package org.thingsboard.server.dao.model.sql; |
17 | 17 | |
18 | 18 | import com.fasterxml.jackson.databind.JsonNode; |
19 | 19 | import lombok.Data; |
20 | -import lombok.EqualsAndHashCode; | |
21 | -import lombok.ToString; | |
22 | 20 | import org.hibernate.annotations.Type; |
23 | 21 | import org.hibernate.annotations.TypeDef; |
24 | 22 | import org.thingsboard.server.common.data.id.EntityIdFactory; |
... | ... | @@ -37,8 +35,6 @@ import static org.thingsboard.server.dao.model.ModelConstants.*; |
37 | 35 | @TypeDef(name = "json", typeClass = JsonStringType.class) |
38 | 36 | @Table(name = RELATION_COLUMN_FAMILY_NAME) |
39 | 37 | @IdClass(RelationCompositeKey.class) |
40 | -@EqualsAndHashCode | |
41 | -@ToString | |
42 | 38 | public final class RelationEntity implements ToData<EntityRelation> { |
43 | 39 | |
44 | 40 | @Id | ... | ... |
... | ... | @@ -18,8 +18,6 @@ package org.thingsboard.server.dao.model.sql; |
18 | 18 | import com.datastax.driver.core.utils.UUIDs; |
19 | 19 | import com.fasterxml.jackson.databind.JsonNode; |
20 | 20 | import lombok.Data; |
21 | -import lombok.EqualsAndHashCode; | |
22 | -import lombok.ToString; | |
23 | 21 | import org.hibernate.annotations.Type; |
24 | 22 | import org.hibernate.annotations.TypeDef; |
25 | 23 | import org.thingsboard.server.common.data.id.RuleId; |
... | ... | @@ -38,8 +36,6 @@ import java.util.UUID; |
38 | 36 | @Entity |
39 | 37 | @TypeDef(name = "json", typeClass = JsonStringType.class) |
40 | 38 | @Table(name = ModelConstants.RULE_COLUMN_FAMILY_NAME) |
41 | -@EqualsAndHashCode | |
42 | -@ToString | |
43 | 39 | public class RuleMetaDataEntity implements SearchTextEntity<RuleMetaData> { |
44 | 40 | |
45 | 41 | @Transient | ... | ... |
... | ... | @@ -17,15 +17,11 @@ package org.thingsboard.server.dao.model.sql; |
17 | 17 | |
18 | 18 | import lombok.AllArgsConstructor; |
19 | 19 | import lombok.Data; |
20 | -import lombok.EqualsAndHashCode; | |
21 | -import lombok.ToString; | |
22 | 20 | |
23 | 21 | import java.util.UUID; |
24 | 22 | |
25 | 23 | @AllArgsConstructor |
26 | 24 | @Data |
27 | -@EqualsAndHashCode | |
28 | -@ToString | |
29 | 25 | public class TenantDeviceTypeEntity { |
30 | 26 | private UUID tenantId; |
31 | 27 | private String type; | ... | ... |
... | ... | @@ -18,8 +18,6 @@ package org.thingsboard.server.dao.model.sql; |
18 | 18 | import com.datastax.driver.core.utils.UUIDs; |
19 | 19 | import com.fasterxml.jackson.databind.JsonNode; |
20 | 20 | import lombok.Data; |
21 | -import lombok.EqualsAndHashCode; | |
22 | -import lombok.ToString; | |
23 | 21 | import org.hibernate.annotations.Type; |
24 | 22 | import org.hibernate.annotations.TypeDef; |
25 | 23 | import org.thingsboard.server.common.data.Tenant; |
... | ... | @@ -35,8 +33,6 @@ import java.util.UUID; |
35 | 33 | @Entity |
36 | 34 | @TypeDef(name = "json", typeClass = JsonStringType.class) |
37 | 35 | @Table(name = ModelConstants.TENANT_COLUMN_FAMILY_NAME) |
38 | -@EqualsAndHashCode | |
39 | -@ToString | |
40 | 36 | public final class TenantEntity implements SearchTextEntity<Tenant> { |
41 | 37 | |
42 | 38 | @Transient | ... | ... |
... | ... | @@ -15,7 +15,9 @@ |
15 | 15 | */ |
16 | 16 | package org.thingsboard.server.dao.model.sql; |
17 | 17 | |
18 | -import lombok.*; | |
18 | +import lombok.AllArgsConstructor; | |
19 | +import lombok.Data; | |
20 | +import lombok.NoArgsConstructor; | |
19 | 21 | |
20 | 22 | import javax.persistence.Transient; |
21 | 23 | import java.io.Serializable; |
... | ... | @@ -24,8 +26,6 @@ import java.util.UUID; |
24 | 26 | @Data |
25 | 27 | @AllArgsConstructor |
26 | 28 | @NoArgsConstructor |
27 | -@EqualsAndHashCode | |
28 | -@ToString | |
29 | 29 | public class TsKvCompositeKey implements Serializable{ |
30 | 30 | |
31 | 31 | @Transient | ... | ... |
... | ... | @@ -16,8 +16,6 @@ |
16 | 16 | package org.thingsboard.server.dao.model.sql; |
17 | 17 | |
18 | 18 | import lombok.Data; |
19 | -import lombok.EqualsAndHashCode; | |
20 | -import lombok.ToString; | |
21 | 19 | import org.thingsboard.server.common.data.kv.TsKvEntry; |
22 | 20 | import org.thingsboard.server.dao.model.ToData; |
23 | 21 | |
... | ... | @@ -30,8 +28,6 @@ import static org.thingsboard.server.dao.model.ModelConstants.*; |
30 | 28 | @Entity |
31 | 29 | @Table(name = "ts_kv") |
32 | 30 | @IdClass(TsKvCompositeKey.class) |
33 | -@EqualsAndHashCode | |
34 | -@ToString | |
35 | 31 | public final class TsKvEntity implements ToData<TsKvEntry> { |
36 | 32 | |
37 | 33 | @Id | ... | ... |
... | ... | @@ -16,8 +16,6 @@ |
16 | 16 | package org.thingsboard.server.dao.model.sql; |
17 | 17 | |
18 | 18 | import lombok.Data; |
19 | -import lombok.EqualsAndHashCode; | |
20 | -import lombok.ToString; | |
21 | 19 | import org.thingsboard.server.common.data.kv.*; |
22 | 20 | import org.thingsboard.server.dao.model.ToData; |
23 | 21 | |
... | ... | @@ -30,8 +28,6 @@ import static org.thingsboard.server.dao.model.ModelConstants.*; |
30 | 28 | @Entity |
31 | 29 | @Table(name = "ts_kv_latest") |
32 | 30 | @IdClass(TsKvLatestCompositeKey.class) |
33 | -@EqualsAndHashCode | |
34 | -@ToString | |
35 | 31 | public final class TsKvLatestEntity implements ToData<TsKvEntry> { |
36 | 32 | |
37 | 33 | @Id | ... | ... |
... | ... | @@ -17,8 +17,6 @@ package org.thingsboard.server.dao.model.sql; |
17 | 17 | |
18 | 18 | import com.datastax.driver.core.utils.UUIDs; |
19 | 19 | import lombok.Data; |
20 | -import lombok.EqualsAndHashCode; | |
21 | -import lombok.ToString; | |
22 | 20 | import org.thingsboard.server.common.data.id.UserCredentialsId; |
23 | 21 | import org.thingsboard.server.common.data.id.UserId; |
24 | 22 | import org.thingsboard.server.common.data.security.UserCredentials; |
... | ... | @@ -31,8 +29,6 @@ import java.util.UUID; |
31 | 29 | @Data |
32 | 30 | @Entity |
33 | 31 | @Table(name = ModelConstants.USER_CREDENTIALS_COLUMN_FAMILY_NAME) |
34 | -@EqualsAndHashCode | |
35 | -@ToString | |
36 | 32 | public final class UserCredentialsEntity implements BaseEntity<UserCredentials> { |
37 | 33 | |
38 | 34 | @Transient | ... | ... |
... | ... | @@ -18,8 +18,6 @@ package org.thingsboard.server.dao.model.sql; |
18 | 18 | import com.datastax.driver.core.utils.UUIDs; |
19 | 19 | import com.fasterxml.jackson.databind.JsonNode; |
20 | 20 | import lombok.Data; |
21 | -import lombok.EqualsAndHashCode; | |
22 | -import lombok.ToString; | |
23 | 21 | import org.hibernate.annotations.Type; |
24 | 22 | import org.hibernate.annotations.TypeDef; |
25 | 23 | import org.thingsboard.server.common.data.User; |
... | ... | @@ -41,8 +39,6 @@ import java.util.UUID; |
41 | 39 | @Entity |
42 | 40 | @TypeDef(name = "json", typeClass = JsonStringType.class) |
43 | 41 | @Table(name = ModelConstants.USER_PG_HIBERNATE_COLUMN_FAMILY_NAME) |
44 | -@EqualsAndHashCode | |
45 | -@ToString | |
46 | 42 | public class UserEntity implements SearchTextEntity<User> { |
47 | 43 | @Transient |
48 | 44 | private static final long serialVersionUID = -271106508790582977L; |
... | ... | @@ -117,8 +113,6 @@ public class UserEntity implements SearchTextEntity<User> { |
117 | 113 | this.id = id; |
118 | 114 | } |
119 | 115 | |
120 | - | |
121 | - | |
122 | 116 | @Override |
123 | 117 | public User toData() { |
124 | 118 | User user = new User(new UserId(id)); | ... | ... |
... | ... | @@ -18,8 +18,6 @@ package org.thingsboard.server.dao.model.sql; |
18 | 18 | import com.datastax.driver.core.utils.UUIDs; |
19 | 19 | import com.fasterxml.jackson.databind.JsonNode; |
20 | 20 | import lombok.Data; |
21 | -import lombok.EqualsAndHashCode; | |
22 | -import lombok.ToString; | |
23 | 21 | import org.hibernate.annotations.Type; |
24 | 22 | import org.hibernate.annotations.TypeDef; |
25 | 23 | import org.thingsboard.server.common.data.id.TenantId; |
... | ... | @@ -36,8 +34,6 @@ import java.util.UUID; |
36 | 34 | @Entity |
37 | 35 | @TypeDef(name = "json", typeClass = JsonStringType.class) |
38 | 36 | @Table(name = ModelConstants.WIDGET_TYPE_COLUMN_FAMILY_NAME) |
39 | -@EqualsAndHashCode | |
40 | -@ToString | |
41 | 37 | public final class WidgetTypeEntity implements BaseEntity<WidgetType> { |
42 | 38 | |
43 | 39 | @Transient | ... | ... |
... | ... | @@ -18,8 +18,6 @@ package org.thingsboard.server.dao.model.sql; |
18 | 18 | |
19 | 19 | import com.datastax.driver.core.utils.UUIDs; |
20 | 20 | import lombok.Data; |
21 | -import lombok.EqualsAndHashCode; | |
22 | -import lombok.ToString; | |
23 | 21 | import org.thingsboard.server.common.data.id.TenantId; |
24 | 22 | import org.thingsboard.server.common.data.id.WidgetsBundleId; |
25 | 23 | import org.thingsboard.server.common.data.widget.WidgetsBundle; |
... | ... | @@ -32,8 +30,6 @@ import java.util.UUID; |
32 | 30 | @Data |
33 | 31 | @Entity |
34 | 32 | @Table(name = ModelConstants.WIDGETS_BUNDLE_COLUMN_FAMILY_NAME) |
35 | -@EqualsAndHashCode | |
36 | -@ToString | |
37 | 33 | public final class WidgetsBundleEntity implements SearchTextEntity<WidgetsBundle> { |
38 | 34 | |
39 | 35 | @Transient | ... | ... |
... | ... | @@ -60,7 +60,6 @@ public class JpaWidgetsBundleDaoTest extends AbstractJpaDaoTest { |
60 | 60 | |
61 | 61 | @Test |
62 | 62 | @DatabaseSetup(value = "classpath:dbunit/widgets_bundle.xml", type= DatabaseOperation.DELETE_ALL) |
63 | - // @DatabaseTearDown(value = "classpath:dbunit/empty_dataset.xml", type= DatabaseOperation.DELETE_ALL) | |
64 | 63 | public void testFindSystemWidgetsBundles() { |
65 | 64 | createSystemWidgetBundles(30, "WB_"); |
66 | 65 | assertEquals(30, widgetsBundleDao.find().size()); | ... | ... |