Subversion Repositories SmartDukaan

Rev

Rev 28768 | Rev 29055 | 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;
28977 manish 2
import java.time.LocalDateTime;
3
 
24317 govind 4
import javax.persistence.Column;
5
import javax.persistence.Entity;
6
import javax.persistence.EnumType;
7
import javax.persistence.Enumerated;
8
import javax.persistence.GeneratedValue;
9
import javax.persistence.GenerationType;
10
import javax.persistence.Id;
11
import javax.persistence.Table;
12
 
13
import com.spice.profitmandi.dao.enumuration.fofo.ApplicableServiceType;
14
 
15
/**
16
 * This class basically contains role details
17
 * 
18
 * @author Govind
19
 *
20
 */
21
@Entity
22
@Table(name="fofo.partner_service",schema="fofo")
23
public class PartnerService {
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="service_id")
34
	private int serviceId;
35
 
36
	@Column(name="applicable_type")
37
	@Enumerated(EnumType.STRING)
38
	private ApplicableServiceType applicableType;
39
 
40
	@Column(name="code")
41
	private String code;
42
 
28977 manish 43
	@Column(name="create_timestamp")
44
	private LocalDateTime createTimestamp;
45
 
24317 govind 46
	@Column(name="na_Comment")
47
	private String na_Comment;
48
 
49
	public int getId() {
50
		return id;
51
	}
52
 
53
	public void setId(int id) {
54
		this.id = id;
55
	}
56
 
57
	public int getFofoId() {
58
		return fofoId;
59
	}
60
 
61
	public void setFofoId(int fofoId) {
62
		this.fofoId = fofoId;
63
	}
28977 manish 64
 
65
 
24317 govind 66
 
28977 manish 67
	public LocalDateTime getCreateTimestamp() {
68
		return createTimestamp;
69
	}
70
 
71
	public void setCreateTimestamp(LocalDateTime createTimestamp) {
72
		this.createTimestamp = createTimestamp;
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="
28977 manish 153
				+ applicableType + ", code=" + code + ", createTimestamp=" + createTimestamp + ", na_Comment="
154
				+ na_Comment + "]";
24317 govind 155
	}
24328 govind 156
 
24317 govind 157
 
158
 
159
 
160
}