| 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 |
|
| 29798 |
manish |
33 |
@Column(name="partner_service_comment_id")
|
|
|
34 |
private int partnerServiceCommentId ;
|
|
|
35 |
|
| 24317 |
govind |
36 |
@Column(name="service_id")
|
|
|
37 |
private int serviceId;
|
|
|
38 |
|
|
|
39 |
@Column(name="applicable_type")
|
|
|
40 |
@Enumerated(EnumType.STRING)
|
|
|
41 |
private ApplicableServiceType applicableType;
|
|
|
42 |
|
|
|
43 |
@Column(name="code")
|
|
|
44 |
private String code;
|
|
|
45 |
|
| 28977 |
manish |
46 |
@Column(name="create_timestamp")
|
|
|
47 |
private LocalDateTime createTimestamp;
|
|
|
48 |
|
| 29055 |
manish |
49 |
@Column(name="pending_create_timestamp")
|
|
|
50 |
private LocalDateTime pendingCreateTimestamp;
|
|
|
51 |
|
| 24317 |
govind |
52 |
@Column(name="na_Comment")
|
|
|
53 |
private String na_Comment;
|
| 29064 |
manish |
54 |
|
| 29766 |
manish |
55 |
@Column(name="gen_comment")
|
|
|
56 |
private String genComment;
|
|
|
57 |
|
| 29064 |
manish |
58 |
@Column(name="pni_service_comment")
|
|
|
59 |
private String partnerNotInterestedServiceComment;
|
| 24317 |
govind |
60 |
|
|
|
61 |
public int getId() {
|
|
|
62 |
return id;
|
|
|
63 |
}
|
|
|
64 |
|
|
|
65 |
public void setId(int id) {
|
|
|
66 |
this.id = id;
|
|
|
67 |
}
|
|
|
68 |
|
|
|
69 |
public int getFofoId() {
|
|
|
70 |
return fofoId;
|
|
|
71 |
}
|
|
|
72 |
|
|
|
73 |
public void setFofoId(int fofoId) {
|
|
|
74 |
this.fofoId = fofoId;
|
|
|
75 |
}
|
| 28977 |
manish |
76 |
|
|
|
77 |
|
| 24317 |
govind |
78 |
|
| 29064 |
manish |
79 |
public String getPartnerNotInterestedServiceComment() {
|
|
|
80 |
return partnerNotInterestedServiceComment;
|
|
|
81 |
}
|
|
|
82 |
|
|
|
83 |
public void setPartnerNotInterestedServiceComment(String partnerNotInterestedServiceComment) {
|
|
|
84 |
this.partnerNotInterestedServiceComment = partnerNotInterestedServiceComment;
|
|
|
85 |
}
|
|
|
86 |
|
| 29055 |
manish |
87 |
public LocalDateTime getPendingCreateTimestamp() {
|
|
|
88 |
return pendingCreateTimestamp;
|
|
|
89 |
}
|
|
|
90 |
|
|
|
91 |
public void setPendingCreateTimestamp(LocalDateTime pendingCreateTimestamp) {
|
|
|
92 |
this.pendingCreateTimestamp = pendingCreateTimestamp;
|
|
|
93 |
}
|
|
|
94 |
|
| 28977 |
manish |
95 |
public LocalDateTime getCreateTimestamp() {
|
|
|
96 |
return createTimestamp;
|
|
|
97 |
}
|
|
|
98 |
|
|
|
99 |
public void setCreateTimestamp(LocalDateTime createTimestamp) {
|
|
|
100 |
this.createTimestamp = createTimestamp;
|
|
|
101 |
}
|
|
|
102 |
|
| 24317 |
govind |
103 |
public int getServiceId() {
|
|
|
104 |
return serviceId;
|
|
|
105 |
}
|
|
|
106 |
|
|
|
107 |
public void setServiceId(int serviceId) {
|
|
|
108 |
this.serviceId = serviceId;
|
|
|
109 |
}
|
|
|
110 |
|
|
|
111 |
public ApplicableServiceType getApplicableType() {
|
|
|
112 |
return applicableType;
|
|
|
113 |
}
|
|
|
114 |
|
|
|
115 |
public void setApplicableType(ApplicableServiceType applicableType) {
|
|
|
116 |
this.applicableType = applicableType;
|
|
|
117 |
}
|
|
|
118 |
|
|
|
119 |
public String getCode() {
|
|
|
120 |
return code;
|
|
|
121 |
}
|
|
|
122 |
|
|
|
123 |
public void setCode(String code) {
|
|
|
124 |
this.code = code;
|
|
|
125 |
}
|
|
|
126 |
|
|
|
127 |
public String getNa_Comment() {
|
|
|
128 |
return na_Comment;
|
|
|
129 |
}
|
|
|
130 |
|
|
|
131 |
public void setNa_Comment(String na_Comment) {
|
|
|
132 |
this.na_Comment = na_Comment;
|
|
|
133 |
}
|
|
|
134 |
|
| 29766 |
manish |
135 |
public String getGenComment() {
|
|
|
136 |
return genComment;
|
|
|
137 |
}
|
|
|
138 |
|
|
|
139 |
public void setGenComment(String genComment) {
|
|
|
140 |
this.genComment = genComment;
|
|
|
141 |
}
|
| 29798 |
manish |
142 |
|
|
|
143 |
|
| 29766 |
manish |
144 |
|
| 29798 |
manish |
145 |
public int getPartnerServiceCommentId() {
|
|
|
146 |
return partnerServiceCommentId;
|
|
|
147 |
}
|
|
|
148 |
|
|
|
149 |
public void setPartnerServiceCommentId(int partnerServiceCommentId) {
|
|
|
150 |
this.partnerServiceCommentId = partnerServiceCommentId;
|
|
|
151 |
}
|
|
|
152 |
|
| 24317 |
govind |
153 |
@Override
|
|
|
154 |
public int hashCode() {
|
|
|
155 |
final int prime = 31;
|
|
|
156 |
int result = 1;
|
|
|
157 |
result = prime * result + ((applicableType == null) ? 0 : applicableType.hashCode());
|
|
|
158 |
result = prime * result + ((code == null) ? 0 : code.hashCode());
|
| 29766 |
manish |
159 |
result = prime * result + ((createTimestamp == null) ? 0 : createTimestamp.hashCode());
|
| 24317 |
govind |
160 |
result = prime * result + fofoId;
|
| 29766 |
manish |
161 |
result = prime * result + ((genComment == null) ? 0 : genComment.hashCode());
|
| 24317 |
govind |
162 |
result = prime * result + id;
|
|
|
163 |
result = prime * result + ((na_Comment == null) ? 0 : na_Comment.hashCode());
|
| 29766 |
manish |
164 |
result = prime * result
|
|
|
165 |
+ ((partnerNotInterestedServiceComment == null) ? 0 : partnerNotInterestedServiceComment.hashCode());
|
|
|
166 |
result = prime * result + ((pendingCreateTimestamp == null) ? 0 : pendingCreateTimestamp.hashCode());
|
| 24317 |
govind |
167 |
result = prime * result + serviceId;
|
|
|
168 |
return result;
|
|
|
169 |
}
|
| 29798 |
manish |
170 |
|
|
|
171 |
|
| 24317 |
govind |
172 |
|
|
|
173 |
@Override
|
|
|
174 |
public boolean equals(Object obj) {
|
|
|
175 |
if (this == obj)
|
|
|
176 |
return true;
|
|
|
177 |
if (obj == null)
|
|
|
178 |
return false;
|
|
|
179 |
if (getClass() != obj.getClass())
|
|
|
180 |
return false;
|
|
|
181 |
PartnerService other = (PartnerService) obj;
|
|
|
182 |
if (applicableType != other.applicableType)
|
|
|
183 |
return false;
|
|
|
184 |
if (code == null) {
|
|
|
185 |
if (other.code != null)
|
|
|
186 |
return false;
|
|
|
187 |
} else if (!code.equals(other.code))
|
|
|
188 |
return false;
|
| 29766 |
manish |
189 |
if (createTimestamp == null) {
|
|
|
190 |
if (other.createTimestamp != null)
|
|
|
191 |
return false;
|
|
|
192 |
} else if (!createTimestamp.equals(other.createTimestamp))
|
|
|
193 |
return false;
|
| 24317 |
govind |
194 |
if (fofoId != other.fofoId)
|
|
|
195 |
return false;
|
| 29766 |
manish |
196 |
if (genComment == null) {
|
|
|
197 |
if (other.genComment != null)
|
|
|
198 |
return false;
|
|
|
199 |
} else if (!genComment.equals(other.genComment))
|
|
|
200 |
return false;
|
| 24317 |
govind |
201 |
if (id != other.id)
|
|
|
202 |
return false;
|
|
|
203 |
if (na_Comment == null) {
|
|
|
204 |
if (other.na_Comment != null)
|
|
|
205 |
return false;
|
|
|
206 |
} else if (!na_Comment.equals(other.na_Comment))
|
|
|
207 |
return false;
|
| 29766 |
manish |
208 |
if (partnerNotInterestedServiceComment == null) {
|
|
|
209 |
if (other.partnerNotInterestedServiceComment != null)
|
|
|
210 |
return false;
|
|
|
211 |
} else if (!partnerNotInterestedServiceComment.equals(other.partnerNotInterestedServiceComment))
|
|
|
212 |
return false;
|
|
|
213 |
if (pendingCreateTimestamp == null) {
|
|
|
214 |
if (other.pendingCreateTimestamp != null)
|
|
|
215 |
return false;
|
|
|
216 |
} else if (!pendingCreateTimestamp.equals(other.pendingCreateTimestamp))
|
|
|
217 |
return false;
|
| 24317 |
govind |
218 |
if (serviceId != other.serviceId)
|
|
|
219 |
return false;
|
|
|
220 |
return true;
|
|
|
221 |
}
|
|
|
222 |
|
|
|
223 |
@Override
|
|
|
224 |
public String toString() {
|
|
|
225 |
return "PartnerService [id=" + id + ", fofoId=" + fofoId + ", serviceId=" + serviceId + ", applicableType="
|
| 29064 |
manish |
226 |
+ applicableType + ", code=" + code + ", createTimestamp=" + createTimestamp
|
|
|
227 |
+ ", pendingCreateTimestamp=" + pendingCreateTimestamp + ", na_Comment=" + na_Comment
|
|
|
228 |
+ ", partnerNotInterestedServiceComment=" + partnerNotInterestedServiceComment + "]";
|
| 24317 |
govind |
229 |
}
|
| 24328 |
govind |
230 |
|
| 24317 |
govind |
231 |
|
|
|
232 |
|
|
|
233 |
|
|
|
234 |
}
|