Subversion Repositories SmartDukaan

Rev

Rev 28977 | Rev 29064 | 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
 
29055 manish 46
	@Column(name="pending_create_timestamp")
47
	private LocalDateTime pendingCreateTimestamp;
48
 
24317 govind 49
	@Column(name="na_Comment")
50
	private String na_Comment;
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
	}
28977 manish 67
 
68
 
24317 govind 69
 
29055 manish 70
	public LocalDateTime getPendingCreateTimestamp() {
71
		return pendingCreateTimestamp;
72
	}
73
 
74
	public void setPendingCreateTimestamp(LocalDateTime pendingCreateTimestamp) {
75
		this.pendingCreateTimestamp = pendingCreateTimestamp;
76
	}
77
 
28977 manish 78
	public LocalDateTime getCreateTimestamp() {
79
		return createTimestamp;
80
	}
81
 
82
	public void setCreateTimestamp(LocalDateTime createTimestamp) {
83
		this.createTimestamp = createTimestamp;
84
	}
85
 
24317 govind 86
	public int getServiceId() {
87
		return serviceId;
88
	}
89
 
90
	public void setServiceId(int serviceId) {
91
		this.serviceId = serviceId;
92
	}
93
 
94
	public ApplicableServiceType getApplicableType() {
95
		return applicableType;
96
	}
97
 
98
	public void setApplicableType(ApplicableServiceType applicableType) {
99
		this.applicableType = applicableType;
100
	}
101
 
102
	public String getCode() {
103
		return code;
104
	}
105
 
106
	public void setCode(String code) {
107
		this.code = code;
108
	}
109
 
110
	public String getNa_Comment() {
111
		return na_Comment;
112
	}
113
 
114
	public void setNa_Comment(String na_Comment) {
115
		this.na_Comment = na_Comment;
116
	}
117
 
118
	@Override
119
	public int hashCode() {
120
		final int prime = 31;
121
		int result = 1;
122
		result = prime * result + ((applicableType == null) ? 0 : applicableType.hashCode());
123
		result = prime * result + ((code == null) ? 0 : code.hashCode());
124
		result = prime * result + fofoId;
125
		result = prime * result + id;
126
		result = prime * result + ((na_Comment == null) ? 0 : na_Comment.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 (serviceId != other.serviceId)
157
			return false;
158
		return true;
159
	}
160
 
161
	@Override
162
	public String toString() {
163
		return "PartnerService [id=" + id + ", fofoId=" + fofoId + ", serviceId=" + serviceId + ", applicableType="
28977 manish 164
				+ applicableType + ", code=" + code + ", createTimestamp=" + createTimestamp + ", na_Comment="
165
				+ na_Comment + "]";
24317 govind 166
	}
24328 govind 167
 
24317 govind 168
 
169
 
170
 
171
}