| 24317 |
govind |
1 |
package com.spice.profitmandi.dao.entity.fofo;
|
| 28977 |
manish |
2 |
import java.time.LocalDateTime;
|
|
|
3 |
|
| 24317 |
govind |
4 |
import javax.persistence.Column;
|
|
|
5 |
import javax.persistence.Entity;
|
|
|
6 |
import javax.persistence.EnumType;
|
|
|
7 |
import javax.persistence.Enumerated;
|
|
|
8 |
import javax.persistence.GeneratedValue;
|
|
|
9 |
import javax.persistence.GenerationType;
|
|
|
10 |
import javax.persistence.Id;
|
|
|
11 |
import javax.persistence.Table;
|
|
|
12 |
|
|
|
13 |
import com.spice.profitmandi.dao.enumuration.fofo.ApplicableServiceType;
|
|
|
14 |
|
|
|
15 |
/**
|
|
|
16 |
* This class basically contains role details
|
|
|
17 |
*
|
|
|
18 |
* @author Govind
|
|
|
19 |
*
|
|
|
20 |
*/
|
|
|
21 |
@Entity
|
|
|
22 |
@Table(name="fofo.partner_service",schema="fofo")
|
|
|
23 |
public class PartnerService {
|
|
|
24 |
|
|
|
25 |
@Id
|
|
|
26 |
@Column(name="id", unique=true, updatable=false)
|
|
|
27 |
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
|
28 |
private int id;
|
|
|
29 |
|
|
|
30 |
@Column(name="fofo_id")
|
|
|
31 |
private int fofoId;
|
|
|
32 |
|
|
|
33 |
@Column(name="service_id")
|
|
|
34 |
private int serviceId;
|
|
|
35 |
|
|
|
36 |
@Column(name="applicable_type")
|
|
|
37 |
@Enumerated(EnumType.STRING)
|
|
|
38 |
private ApplicableServiceType applicableType;
|
|
|
39 |
|
|
|
40 |
@Column(name="code")
|
|
|
41 |
private String code;
|
|
|
42 |
|
| 28977 |
manish |
43 |
@Column(name="create_timestamp")
|
|
|
44 |
private LocalDateTime createTimestamp;
|
|
|
45 |
|
| 29055 |
manish |
46 |
@Column(name="pending_create_timestamp")
|
|
|
47 |
private LocalDateTime pendingCreateTimestamp;
|
|
|
48 |
|
| 24317 |
govind |
49 |
@Column(name="na_Comment")
|
|
|
50 |
private String na_Comment;
|
| 29064 |
manish |
51 |
|
| 29766 |
manish |
52 |
@Column(name="gen_comment")
|
|
|
53 |
private String genComment;
|
|
|
54 |
|
| 29064 |
manish |
55 |
@Column(name="pni_service_comment")
|
|
|
56 |
private String partnerNotInterestedServiceComment;
|
| 24317 |
govind |
57 |
|
|
|
58 |
public int getId() {
|
|
|
59 |
return id;
|
|
|
60 |
}
|
|
|
61 |
|
|
|
62 |
public void setId(int id) {
|
|
|
63 |
this.id = id;
|
|
|
64 |
}
|
|
|
65 |
|
|
|
66 |
public int getFofoId() {
|
|
|
67 |
return fofoId;
|
|
|
68 |
}
|
|
|
69 |
|
|
|
70 |
public void setFofoId(int fofoId) {
|
|
|
71 |
this.fofoId = fofoId;
|
|
|
72 |
}
|
| 28977 |
manish |
73 |
|
|
|
74 |
|
| 24317 |
govind |
75 |
|
| 29064 |
manish |
76 |
public String getPartnerNotInterestedServiceComment() {
|
|
|
77 |
return partnerNotInterestedServiceComment;
|
|
|
78 |
}
|
|
|
79 |
|
|
|
80 |
public void setPartnerNotInterestedServiceComment(String partnerNotInterestedServiceComment) {
|
|
|
81 |
this.partnerNotInterestedServiceComment = partnerNotInterestedServiceComment;
|
|
|
82 |
}
|
|
|
83 |
|
| 29055 |
manish |
84 |
public LocalDateTime getPendingCreateTimestamp() {
|
|
|
85 |
return pendingCreateTimestamp;
|
|
|
86 |
}
|
|
|
87 |
|
|
|
88 |
public void setPendingCreateTimestamp(LocalDateTime pendingCreateTimestamp) {
|
|
|
89 |
this.pendingCreateTimestamp = pendingCreateTimestamp;
|
|
|
90 |
}
|
|
|
91 |
|
| 28977 |
manish |
92 |
public LocalDateTime getCreateTimestamp() {
|
|
|
93 |
return createTimestamp;
|
|
|
94 |
}
|
|
|
95 |
|
|
|
96 |
public void setCreateTimestamp(LocalDateTime createTimestamp) {
|
|
|
97 |
this.createTimestamp = createTimestamp;
|
|
|
98 |
}
|
|
|
99 |
|
| 24317 |
govind |
100 |
public int getServiceId() {
|
|
|
101 |
return serviceId;
|
|
|
102 |
}
|
|
|
103 |
|
|
|
104 |
public void setServiceId(int serviceId) {
|
|
|
105 |
this.serviceId = serviceId;
|
|
|
106 |
}
|
|
|
107 |
|
|
|
108 |
public ApplicableServiceType getApplicableType() {
|
|
|
109 |
return applicableType;
|
|
|
110 |
}
|
|
|
111 |
|
|
|
112 |
public void setApplicableType(ApplicableServiceType applicableType) {
|
|
|
113 |
this.applicableType = applicableType;
|
|
|
114 |
}
|
|
|
115 |
|
|
|
116 |
public String getCode() {
|
|
|
117 |
return code;
|
|
|
118 |
}
|
|
|
119 |
|
|
|
120 |
public void setCode(String code) {
|
|
|
121 |
this.code = code;
|
|
|
122 |
}
|
|
|
123 |
|
|
|
124 |
public String getNa_Comment() {
|
|
|
125 |
return na_Comment;
|
|
|
126 |
}
|
|
|
127 |
|
|
|
128 |
public void setNa_Comment(String na_Comment) {
|
|
|
129 |
this.na_Comment = na_Comment;
|
|
|
130 |
}
|
|
|
131 |
|
| 29766 |
manish |
132 |
public String getGenComment() {
|
|
|
133 |
return genComment;
|
|
|
134 |
}
|
|
|
135 |
|
|
|
136 |
public void setGenComment(String genComment) {
|
|
|
137 |
this.genComment = genComment;
|
|
|
138 |
}
|
|
|
139 |
|
| 24317 |
govind |
140 |
@Override
|
|
|
141 |
public int hashCode() {
|
|
|
142 |
final int prime = 31;
|
|
|
143 |
int result = 1;
|
|
|
144 |
result = prime * result + ((applicableType == null) ? 0 : applicableType.hashCode());
|
|
|
145 |
result = prime * result + ((code == null) ? 0 : code.hashCode());
|
| 29766 |
manish |
146 |
result = prime * result + ((createTimestamp == null) ? 0 : createTimestamp.hashCode());
|
| 24317 |
govind |
147 |
result = prime * result + fofoId;
|
| 29766 |
manish |
148 |
result = prime * result + ((genComment == null) ? 0 : genComment.hashCode());
|
| 24317 |
govind |
149 |
result = prime * result + id;
|
|
|
150 |
result = prime * result + ((na_Comment == null) ? 0 : na_Comment.hashCode());
|
| 29766 |
manish |
151 |
result = prime * result
|
|
|
152 |
+ ((partnerNotInterestedServiceComment == null) ? 0 : partnerNotInterestedServiceComment.hashCode());
|
|
|
153 |
result = prime * result + ((pendingCreateTimestamp == null) ? 0 : pendingCreateTimestamp.hashCode());
|
| 24317 |
govind |
154 |
result = prime * result + serviceId;
|
|
|
155 |
return result;
|
|
|
156 |
}
|
|
|
157 |
|
|
|
158 |
@Override
|
|
|
159 |
public boolean equals(Object obj) {
|
|
|
160 |
if (this == obj)
|
|
|
161 |
return true;
|
|
|
162 |
if (obj == null)
|
|
|
163 |
return false;
|
|
|
164 |
if (getClass() != obj.getClass())
|
|
|
165 |
return false;
|
|
|
166 |
PartnerService other = (PartnerService) obj;
|
|
|
167 |
if (applicableType != other.applicableType)
|
|
|
168 |
return false;
|
|
|
169 |
if (code == null) {
|
|
|
170 |
if (other.code != null)
|
|
|
171 |
return false;
|
|
|
172 |
} else if (!code.equals(other.code))
|
|
|
173 |
return false;
|
| 29766 |
manish |
174 |
if (createTimestamp == null) {
|
|
|
175 |
if (other.createTimestamp != null)
|
|
|
176 |
return false;
|
|
|
177 |
} else if (!createTimestamp.equals(other.createTimestamp))
|
|
|
178 |
return false;
|
| 24317 |
govind |
179 |
if (fofoId != other.fofoId)
|
|
|
180 |
return false;
|
| 29766 |
manish |
181 |
if (genComment == null) {
|
|
|
182 |
if (other.genComment != null)
|
|
|
183 |
return false;
|
|
|
184 |
} else if (!genComment.equals(other.genComment))
|
|
|
185 |
return false;
|
| 24317 |
govind |
186 |
if (id != other.id)
|
|
|
187 |
return false;
|
|
|
188 |
if (na_Comment == null) {
|
|
|
189 |
if (other.na_Comment != null)
|
|
|
190 |
return false;
|
|
|
191 |
} else if (!na_Comment.equals(other.na_Comment))
|
|
|
192 |
return false;
|
| 29766 |
manish |
193 |
if (partnerNotInterestedServiceComment == null) {
|
|
|
194 |
if (other.partnerNotInterestedServiceComment != null)
|
|
|
195 |
return false;
|
|
|
196 |
} else if (!partnerNotInterestedServiceComment.equals(other.partnerNotInterestedServiceComment))
|
|
|
197 |
return false;
|
|
|
198 |
if (pendingCreateTimestamp == null) {
|
|
|
199 |
if (other.pendingCreateTimestamp != null)
|
|
|
200 |
return false;
|
|
|
201 |
} else if (!pendingCreateTimestamp.equals(other.pendingCreateTimestamp))
|
|
|
202 |
return false;
|
| 24317 |
govind |
203 |
if (serviceId != other.serviceId)
|
|
|
204 |
return false;
|
|
|
205 |
return true;
|
|
|
206 |
}
|
|
|
207 |
|
|
|
208 |
@Override
|
|
|
209 |
public String toString() {
|
|
|
210 |
return "PartnerService [id=" + id + ", fofoId=" + fofoId + ", serviceId=" + serviceId + ", applicableType="
|
| 29064 |
manish |
211 |
+ applicableType + ", code=" + code + ", createTimestamp=" + createTimestamp
|
|
|
212 |
+ ", pendingCreateTimestamp=" + pendingCreateTimestamp + ", na_Comment=" + na_Comment
|
|
|
213 |
+ ", partnerNotInterestedServiceComment=" + partnerNotInterestedServiceComment + "]";
|
| 24317 |
govind |
214 |
}
|
| 24328 |
govind |
215 |
|
| 24317 |
govind |
216 |
|
|
|
217 |
|
|
|
218 |
|
|
|
219 |
}
|