| 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 |
|
|
|
52 |
@Column(name="pni_service_comment")
|
|
|
53 |
private String partnerNotInterestedServiceComment;
|
| 24317 |
govind |
54 |
|
|
|
55 |
public int getId() {
|
|
|
56 |
return id;
|
|
|
57 |
}
|
|
|
58 |
|
|
|
59 |
public void setId(int id) {
|
|
|
60 |
this.id = id;
|
|
|
61 |
}
|
|
|
62 |
|
|
|
63 |
public int getFofoId() {
|
|
|
64 |
return fofoId;
|
|
|
65 |
}
|
|
|
66 |
|
|
|
67 |
public void setFofoId(int fofoId) {
|
|
|
68 |
this.fofoId = fofoId;
|
|
|
69 |
}
|
| 28977 |
manish |
70 |
|
|
|
71 |
|
| 24317 |
govind |
72 |
|
| 29064 |
manish |
73 |
public String getPartnerNotInterestedServiceComment() {
|
|
|
74 |
return partnerNotInterestedServiceComment;
|
|
|
75 |
}
|
|
|
76 |
|
|
|
77 |
public void setPartnerNotInterestedServiceComment(String partnerNotInterestedServiceComment) {
|
|
|
78 |
this.partnerNotInterestedServiceComment = partnerNotInterestedServiceComment;
|
|
|
79 |
}
|
|
|
80 |
|
| 29055 |
manish |
81 |
public LocalDateTime getPendingCreateTimestamp() {
|
|
|
82 |
return pendingCreateTimestamp;
|
|
|
83 |
}
|
|
|
84 |
|
|
|
85 |
public void setPendingCreateTimestamp(LocalDateTime pendingCreateTimestamp) {
|
|
|
86 |
this.pendingCreateTimestamp = pendingCreateTimestamp;
|
|
|
87 |
}
|
|
|
88 |
|
| 28977 |
manish |
89 |
public LocalDateTime getCreateTimestamp() {
|
|
|
90 |
return createTimestamp;
|
|
|
91 |
}
|
|
|
92 |
|
|
|
93 |
public void setCreateTimestamp(LocalDateTime createTimestamp) {
|
|
|
94 |
this.createTimestamp = createTimestamp;
|
|
|
95 |
}
|
|
|
96 |
|
| 24317 |
govind |
97 |
public int getServiceId() {
|
|
|
98 |
return serviceId;
|
|
|
99 |
}
|
|
|
100 |
|
|
|
101 |
public void setServiceId(int serviceId) {
|
|
|
102 |
this.serviceId = serviceId;
|
|
|
103 |
}
|
|
|
104 |
|
|
|
105 |
public ApplicableServiceType getApplicableType() {
|
|
|
106 |
return applicableType;
|
|
|
107 |
}
|
|
|
108 |
|
|
|
109 |
public void setApplicableType(ApplicableServiceType applicableType) {
|
|
|
110 |
this.applicableType = applicableType;
|
|
|
111 |
}
|
|
|
112 |
|
|
|
113 |
public String getCode() {
|
|
|
114 |
return code;
|
|
|
115 |
}
|
|
|
116 |
|
|
|
117 |
public void setCode(String code) {
|
|
|
118 |
this.code = code;
|
|
|
119 |
}
|
|
|
120 |
|
|
|
121 |
public String getNa_Comment() {
|
|
|
122 |
return na_Comment;
|
|
|
123 |
}
|
|
|
124 |
|
|
|
125 |
public void setNa_Comment(String na_Comment) {
|
|
|
126 |
this.na_Comment = na_Comment;
|
|
|
127 |
}
|
|
|
128 |
|
|
|
129 |
@Override
|
|
|
130 |
public int hashCode() {
|
|
|
131 |
final int prime = 31;
|
|
|
132 |
int result = 1;
|
|
|
133 |
result = prime * result + ((applicableType == null) ? 0 : applicableType.hashCode());
|
|
|
134 |
result = prime * result + ((code == null) ? 0 : code.hashCode());
|
|
|
135 |
result = prime * result + fofoId;
|
|
|
136 |
result = prime * result + id;
|
|
|
137 |
result = prime * result + ((na_Comment == null) ? 0 : na_Comment.hashCode());
|
|
|
138 |
result = prime * result + serviceId;
|
|
|
139 |
return result;
|
|
|
140 |
}
|
|
|
141 |
|
|
|
142 |
@Override
|
|
|
143 |
public boolean equals(Object obj) {
|
|
|
144 |
if (this == obj)
|
|
|
145 |
return true;
|
|
|
146 |
if (obj == null)
|
|
|
147 |
return false;
|
|
|
148 |
if (getClass() != obj.getClass())
|
|
|
149 |
return false;
|
|
|
150 |
PartnerService other = (PartnerService) obj;
|
|
|
151 |
if (applicableType != other.applicableType)
|
|
|
152 |
return false;
|
|
|
153 |
if (code == null) {
|
|
|
154 |
if (other.code != null)
|
|
|
155 |
return false;
|
|
|
156 |
} else if (!code.equals(other.code))
|
|
|
157 |
return false;
|
|
|
158 |
if (fofoId != other.fofoId)
|
|
|
159 |
return false;
|
|
|
160 |
if (id != other.id)
|
|
|
161 |
return false;
|
|
|
162 |
if (na_Comment == null) {
|
|
|
163 |
if (other.na_Comment != null)
|
|
|
164 |
return false;
|
|
|
165 |
} else if (!na_Comment.equals(other.na_Comment))
|
|
|
166 |
return false;
|
|
|
167 |
if (serviceId != other.serviceId)
|
|
|
168 |
return false;
|
|
|
169 |
return true;
|
|
|
170 |
}
|
|
|
171 |
|
|
|
172 |
@Override
|
|
|
173 |
public String toString() {
|
|
|
174 |
return "PartnerService [id=" + id + ", fofoId=" + fofoId + ", serviceId=" + serviceId + ", applicableType="
|
| 29064 |
manish |
175 |
+ applicableType + ", code=" + code + ", createTimestamp=" + createTimestamp
|
|
|
176 |
+ ", pendingCreateTimestamp=" + pendingCreateTimestamp + ", na_Comment=" + na_Comment
|
|
|
177 |
+ ", partnerNotInterestedServiceComment=" + partnerNotInterestedServiceComment + "]";
|
| 24317 |
govind |
178 |
}
|
| 24328 |
govind |
179 |
|
| 24317 |
govind |
180 |
|
|
|
181 |
|
|
|
182 |
|
|
|
183 |
}
|