Subversion Repositories SmartDukaan

Rev

Rev 24328 | Go to most recent revision | Details | Last modification | View Log | RSS feed

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