Subversion Repositories SmartDukaan

Rev

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