| 21543 |
ashik.ali |
1 |
package com.spice.profitmandi.common.model;
|
|
|
2 |
|
|
|
3 |
import java.time.LocalDateTime;
|
|
|
4 |
|
|
|
5 |
public class CustomRole {
|
|
|
6 |
private int id;
|
|
|
7 |
private String name;
|
|
|
8 |
private String type;
|
|
|
9 |
private String status;
|
|
|
10 |
private LocalDateTime createTimestamp;
|
|
|
11 |
private LocalDateTime updateTimestamp;
|
|
|
12 |
private String permissionType;
|
|
|
13 |
public int getId() {
|
|
|
14 |
return id;
|
|
|
15 |
}
|
|
|
16 |
public void setId(int id) {
|
|
|
17 |
this.id = id;
|
|
|
18 |
}
|
|
|
19 |
public String getName() {
|
|
|
20 |
return name;
|
|
|
21 |
}
|
|
|
22 |
public void setName(String name) {
|
|
|
23 |
this.name = name;
|
|
|
24 |
}
|
|
|
25 |
public String getType() {
|
|
|
26 |
return type;
|
|
|
27 |
}
|
|
|
28 |
public void setType(String type) {
|
|
|
29 |
this.type = type;
|
|
|
30 |
}
|
|
|
31 |
public String getStatus() {
|
|
|
32 |
return status;
|
|
|
33 |
}
|
|
|
34 |
public void setStatus(String status) {
|
|
|
35 |
this.status = status;
|
|
|
36 |
}
|
|
|
37 |
public LocalDateTime getCreateTimestamp() {
|
|
|
38 |
return createTimestamp;
|
|
|
39 |
}
|
|
|
40 |
public void setCreateTimestamp(LocalDateTime createTimestamp) {
|
|
|
41 |
this.createTimestamp = createTimestamp;
|
|
|
42 |
}
|
|
|
43 |
public LocalDateTime getUpdateTimestamp() {
|
|
|
44 |
return updateTimestamp;
|
|
|
45 |
}
|
|
|
46 |
public void setUpdateTimestamp(LocalDateTime updateTimestamp) {
|
|
|
47 |
this.updateTimestamp = updateTimestamp;
|
|
|
48 |
}
|
|
|
49 |
public String getPermissionType() {
|
|
|
50 |
return permissionType;
|
|
|
51 |
}
|
|
|
52 |
public void setPermissionType(String permissionType) {
|
|
|
53 |
this.permissionType = permissionType;
|
|
|
54 |
}
|
| 21923 |
ashik.ali |
55 |
|
|
|
56 |
|
| 21600 |
ashik.ali |
57 |
@Override
|
| 21923 |
ashik.ali |
58 |
public int hashCode() {
|
|
|
59 |
final int prime = 31;
|
|
|
60 |
int result = 1;
|
|
|
61 |
result = prime * result + ((createTimestamp == null) ? 0 : createTimestamp.hashCode());
|
|
|
62 |
result = prime * result + id;
|
|
|
63 |
result = prime * result + ((name == null) ? 0 : name.hashCode());
|
|
|
64 |
result = prime * result + ((permissionType == null) ? 0 : permissionType.hashCode());
|
|
|
65 |
result = prime * result + ((status == null) ? 0 : status.hashCode());
|
|
|
66 |
result = prime * result + ((type == null) ? 0 : type.hashCode());
|
|
|
67 |
result = prime * result + ((updateTimestamp == null) ? 0 : updateTimestamp.hashCode());
|
|
|
68 |
return result;
|
|
|
69 |
}
|
|
|
70 |
@Override
|
|
|
71 |
public boolean equals(Object obj) {
|
|
|
72 |
if (this == obj)
|
|
|
73 |
return true;
|
|
|
74 |
if (obj == null)
|
|
|
75 |
return false;
|
|
|
76 |
if (getClass() != obj.getClass())
|
|
|
77 |
return false;
|
|
|
78 |
CustomRole other = (CustomRole) obj;
|
|
|
79 |
if (createTimestamp == null) {
|
|
|
80 |
if (other.createTimestamp != null)
|
|
|
81 |
return false;
|
|
|
82 |
} else if (!createTimestamp.equals(other.createTimestamp))
|
|
|
83 |
return false;
|
|
|
84 |
if (id != other.id)
|
|
|
85 |
return false;
|
|
|
86 |
if (name == null) {
|
|
|
87 |
if (other.name != null)
|
|
|
88 |
return false;
|
|
|
89 |
} else if (!name.equals(other.name))
|
|
|
90 |
return false;
|
|
|
91 |
if (permissionType == null) {
|
|
|
92 |
if (other.permissionType != null)
|
|
|
93 |
return false;
|
|
|
94 |
} else if (!permissionType.equals(other.permissionType))
|
|
|
95 |
return false;
|
|
|
96 |
if (status == null) {
|
|
|
97 |
if (other.status != null)
|
|
|
98 |
return false;
|
|
|
99 |
} else if (!status.equals(other.status))
|
|
|
100 |
return false;
|
|
|
101 |
if (type == null) {
|
|
|
102 |
if (other.type != null)
|
|
|
103 |
return false;
|
|
|
104 |
} else if (!type.equals(other.type))
|
|
|
105 |
return false;
|
|
|
106 |
if (updateTimestamp == null) {
|
|
|
107 |
if (other.updateTimestamp != null)
|
|
|
108 |
return false;
|
|
|
109 |
} else if (!updateTimestamp.equals(other.updateTimestamp))
|
|
|
110 |
return false;
|
|
|
111 |
return true;
|
|
|
112 |
}
|
|
|
113 |
@Override
|
| 21600 |
ashik.ali |
114 |
public String toString() {
|
|
|
115 |
return "CustomRole [id=" + id + ", name=" + name + ", type=" + type + ", status=" + status
|
|
|
116 |
+ ", createTimestamp=" + createTimestamp + ", updateTimestamp=" + updateTimestamp + ", permissionType="
|
|
|
117 |
+ permissionType + "]";
|
|
|
118 |
}
|
| 21543 |
ashik.ali |
119 |
|
| 21600 |
ashik.ali |
120 |
|
| 21543 |
ashik.ali |
121 |
}
|