| 24317 |
govind |
1 |
package com.spice.profitmandi.dao.entity.fofo;
|
|
|
2 |
|
|
|
3 |
import javax.persistence.Column;
|
|
|
4 |
import javax.persistence.Entity;
|
|
|
5 |
import javax.persistence.EnumType;
|
|
|
6 |
import javax.persistence.Enumerated;
|
|
|
7 |
import javax.persistence.GeneratedValue;
|
|
|
8 |
import javax.persistence.GenerationType;
|
|
|
9 |
import javax.persistence.Id;
|
|
|
10 |
import javax.persistence.Table;
|
|
|
11 |
|
|
|
12 |
import com.spice.profitmandi.dao.enumuration.fofo.ApplicableServiceType;
|
|
|
13 |
import com.spice.profitmandi.dao.enumuration.fofo.PartnerStatusType;
|
|
|
14 |
|
|
|
15 |
/**
|
|
|
16 |
* This class basically contains role details
|
|
|
17 |
*
|
|
|
18 |
* @author Govind
|
|
|
19 |
*
|
|
|
20 |
*/
|
|
|
21 |
@Entity
|
|
|
22 |
@Table(name = "fofo.partner_service_brand", schema = "fofo")
|
|
|
23 |
public class PartnerBrandService {
|
|
|
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 = "brand_service_id")
|
|
|
34 |
private int brandServiceId;
|
|
|
35 |
|
|
|
36 |
@Column(name = "active")
|
|
|
37 |
private boolean active;
|
|
|
38 |
|
|
|
39 |
@Column(name = "applicable_type")
|
|
|
40 |
@Enumerated(EnumType.STRING)
|
|
|
41 |
private ApplicableServiceType applicableType;
|
|
|
42 |
|
|
|
43 |
@Column(name = "partner_status_type")
|
|
|
44 |
@Enumerated(EnumType.STRING)
|
|
|
45 |
private PartnerStatusType partnerStatusType;;
|
|
|
46 |
|
|
|
47 |
@Column(name = "na_Comment")
|
|
|
48 |
private String na_Comment;
|
|
|
49 |
|
|
|
50 |
@Column(name = "partner_status_comment")
|
|
|
51 |
private String partnerStatusComment;
|
|
|
52 |
|
|
|
53 |
public int getId() {
|
|
|
54 |
return id;
|
|
|
55 |
}
|
|
|
56 |
|
|
|
57 |
public void setId(int id) {
|
|
|
58 |
this.id = id;
|
|
|
59 |
}
|
|
|
60 |
|
|
|
61 |
public int getFofoId() {
|
|
|
62 |
return fofoId;
|
|
|
63 |
}
|
|
|
64 |
|
|
|
65 |
public void setFofoId(int fofoId) {
|
|
|
66 |
this.fofoId = fofoId;
|
|
|
67 |
}
|
|
|
68 |
|
|
|
69 |
public int getBrandServiceId() {
|
|
|
70 |
return brandServiceId;
|
|
|
71 |
}
|
|
|
72 |
|
|
|
73 |
public void setBrandServiceId(int brandServiceId) {
|
|
|
74 |
this.brandServiceId = brandServiceId;
|
|
|
75 |
}
|
|
|
76 |
|
|
|
77 |
public boolean isActive() {
|
|
|
78 |
return active;
|
|
|
79 |
}
|
|
|
80 |
|
|
|
81 |
public void setActive(boolean active) {
|
|
|
82 |
this.active = active;
|
|
|
83 |
}
|
|
|
84 |
|
|
|
85 |
public ApplicableServiceType getApplicableType() {
|
|
|
86 |
return applicableType;
|
|
|
87 |
}
|
|
|
88 |
|
|
|
89 |
public void setApplicableType(ApplicableServiceType applicableType) {
|
|
|
90 |
this.applicableType = applicableType;
|
|
|
91 |
}
|
|
|
92 |
|
|
|
93 |
public PartnerStatusType getPartnerStatusType() {
|
|
|
94 |
return partnerStatusType;
|
|
|
95 |
}
|
|
|
96 |
|
|
|
97 |
public void setPartnerStatusType(PartnerStatusType partnerStatusType) {
|
|
|
98 |
this.partnerStatusType = partnerStatusType;
|
|
|
99 |
}
|
|
|
100 |
|
|
|
101 |
public String getNa_Comment() {
|
|
|
102 |
return na_Comment;
|
|
|
103 |
}
|
|
|
104 |
|
|
|
105 |
public void setNa_Comment(String na_Comment) {
|
|
|
106 |
this.na_Comment = na_Comment;
|
|
|
107 |
}
|
|
|
108 |
|
|
|
109 |
public String getPartnerStatusComment() {
|
|
|
110 |
return partnerStatusComment;
|
|
|
111 |
}
|
|
|
112 |
|
|
|
113 |
public void setPartnerStatusComment(String partnerStatusComment) {
|
|
|
114 |
this.partnerStatusComment = partnerStatusComment;
|
|
|
115 |
}
|
|
|
116 |
|
|
|
117 |
@Override
|
|
|
118 |
public int hashCode() {
|
|
|
119 |
final int prime = 31;
|
|
|
120 |
int result = 1;
|
|
|
121 |
result = prime * result + (active ? 1231 : 1237);
|
|
|
122 |
result = prime * result + ((applicableType == null) ? 0 : applicableType.hashCode());
|
|
|
123 |
result = prime * result + brandServiceId;
|
|
|
124 |
result = prime * result + fofoId;
|
|
|
125 |
result = prime * result + id;
|
|
|
126 |
result = prime * result + ((na_Comment == null) ? 0 : na_Comment.hashCode());
|
|
|
127 |
result = prime * result + ((partnerStatusComment == null) ? 0 : partnerStatusComment.hashCode());
|
|
|
128 |
result = prime * result + ((partnerStatusType == null) ? 0 : partnerStatusType.hashCode());
|
|
|
129 |
return result;
|
|
|
130 |
}
|
|
|
131 |
|
|
|
132 |
@Override
|
|
|
133 |
public boolean equals(Object obj) {
|
|
|
134 |
if (this == obj)
|
|
|
135 |
return true;
|
|
|
136 |
if (obj == null)
|
|
|
137 |
return false;
|
|
|
138 |
if (getClass() != obj.getClass())
|
|
|
139 |
return false;
|
|
|
140 |
PartnerBrandService other = (PartnerBrandService) obj;
|
|
|
141 |
if (active != other.active)
|
|
|
142 |
return false;
|
|
|
143 |
if (applicableType != other.applicableType)
|
|
|
144 |
return false;
|
|
|
145 |
if (brandServiceId != other.brandServiceId)
|
|
|
146 |
return false;
|
|
|
147 |
if (fofoId != other.fofoId)
|
|
|
148 |
return false;
|
|
|
149 |
if (id != other.id)
|
|
|
150 |
return false;
|
|
|
151 |
if (na_Comment == null) {
|
|
|
152 |
if (other.na_Comment != null)
|
|
|
153 |
return false;
|
|
|
154 |
} else if (!na_Comment.equals(other.na_Comment))
|
|
|
155 |
return false;
|
|
|
156 |
if (partnerStatusComment == null) {
|
|
|
157 |
if (other.partnerStatusComment != null)
|
|
|
158 |
return false;
|
|
|
159 |
} else if (!partnerStatusComment.equals(other.partnerStatusComment))
|
|
|
160 |
return false;
|
|
|
161 |
if (partnerStatusType != other.partnerStatusType)
|
|
|
162 |
return false;
|
|
|
163 |
return true;
|
|
|
164 |
}
|
|
|
165 |
|
|
|
166 |
@Override
|
|
|
167 |
public String toString() {
|
|
|
168 |
return "PartnerBrandService [id=" + id + ", fofoId=" + fofoId + ", brandServiceId=" + brandServiceId
|
|
|
169 |
+ ", active=" + active + ", applicableType=" + applicableType + ", partnerStatusType="
|
|
|
170 |
+ partnerStatusType + ", na_Comment=" + na_Comment + ", partnerStatusComment=" + partnerStatusComment
|
|
|
171 |
+ "]";
|
|
|
172 |
}
|
|
|
173 |
|
|
|
174 |
|
|
|
175 |
}
|