Subversion Repositories SmartDukaan

Rev

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