Subversion Repositories SmartDukaan

Rev

Rev 24328 | Rev 28767 | Go to most recent revision | Details | Compare with Previous | 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;
28755 amit.gupta 41
 
42
	@Column(name="active")
43
	private boolean active; 
24317 govind 44
 
45
	@Column(name="na_Comment")
46
	private String na_Comment;
47
 
48
	public int getId() {
49
		return id;
50
	}
51
 
52
	public void setId(int id) {
53
		this.id = id;
54
	}
55
 
56
	public int getFofoId() {
57
		return fofoId;
58
	}
59
 
60
	public void setFofoId(int fofoId) {
61
		this.fofoId = fofoId;
62
	}
28755 amit.gupta 63
 
64
 
65
 
24317 govind 66
 
28755 amit.gupta 67
	public boolean isActive() {
68
		return active;
69
	}
70
 
71
	public void setActive(boolean active) {
72
		this.active = active;
73
	}
74
 
24317 govind 75
	public int getServiceId() {
76
		return serviceId;
77
	}
78
 
79
	public void setServiceId(int serviceId) {
80
		this.serviceId = serviceId;
81
	}
82
 
83
	public ApplicableServiceType getApplicableType() {
84
		return applicableType;
85
	}
86
 
87
	public void setApplicableType(ApplicableServiceType applicableType) {
88
		this.applicableType = applicableType;
89
	}
90
 
91
	public String getCode() {
92
		return code;
93
	}
94
 
95
	public void setCode(String code) {
96
		this.code = code;
97
	}
98
 
99
	public String getNa_Comment() {
100
		return na_Comment;
101
	}
102
 
103
	public void setNa_Comment(String na_Comment) {
104
		this.na_Comment = na_Comment;
105
	}
106
 
107
	@Override
108
	public int hashCode() {
109
		final int prime = 31;
110
		int result = 1;
111
		result = prime * result + ((applicableType == null) ? 0 : applicableType.hashCode());
112
		result = prime * result + ((code == null) ? 0 : code.hashCode());
113
		result = prime * result + fofoId;
114
		result = prime * result + id;
115
		result = prime * result + ((na_Comment == null) ? 0 : na_Comment.hashCode());
116
		result = prime * result + serviceId;
117
		return result;
118
	}
119
 
120
	@Override
121
	public boolean equals(Object obj) {
122
		if (this == obj)
123
			return true;
124
		if (obj == null)
125
			return false;
126
		if (getClass() != obj.getClass())
127
			return false;
128
		PartnerService other = (PartnerService) obj;
129
		if (applicableType != other.applicableType)
130
			return false;
131
		if (code == null) {
132
			if (other.code != null)
133
				return false;
134
		} else if (!code.equals(other.code))
135
			return false;
136
		if (fofoId != other.fofoId)
137
			return false;
138
		if (id != other.id)
139
			return false;
140
		if (na_Comment == null) {
141
			if (other.na_Comment != null)
142
				return false;
143
		} else if (!na_Comment.equals(other.na_Comment))
144
			return false;
145
		if (serviceId != other.serviceId)
146
			return false;
147
		return true;
148
	}
149
 
150
	@Override
151
	public String toString() {
152
		return "PartnerService [id=" + id + ", fofoId=" + fofoId + ", serviceId=" + serviceId + ", applicableType="
24328 govind 153
				+ applicableType + ", code=" + code + ", na_Comment=" + na_Comment + "]";
24317 govind 154
	}
24328 govind 155
 
24317 govind 156
 
157
 
158
 
159
}