Subversion Repositories SmartDukaan

Rev

Rev 28299 | Rev 32074 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
28299 tejbeer 1
package com.spice.profitmandi.dao.entity.warehouse;
2
 
3
import java.time.LocalDateTime;
4
 
5
import javax.persistence.Column;
6
import javax.persistence.Entity;
7
import javax.persistence.GeneratedValue;
8
import javax.persistence.GenerationType;
9
import javax.persistence.Id;
10
import javax.persistence.Table;
11
 
12
@Entity
13
@Table(name = "warehouse.supplier", schema = "warehouse")
14
public class Supplier {
15
 
16
	@Id
17
	@Column(name = "id", unique = true, updatable = false)
18
	@GeneratedValue(strategy = GenerationType.IDENTITY)
28493 tejbeer 19
	private int id; // required
20
 
21
	private String name; // required
22
 
23
	private String phone; // required
24
	private String fax; // required
25
	private String tin; 
26
	private String pan; // required
27
	private String headName; // required
28
	private String headDesignation; // required
29
	private String headEmail; // required
30
	private String contactName; // required
31
	private String contactPhone; // required
32
	private String contactFax; // required
33
	private String contactEmail; // required
34
	private String registeredAddress; // required
35
	private String communicationAddress; // required
36
	private int stateId; // required
37
	private int poValidityLimit; // required
38
	private String gstin; // required
39
	private String tnc;
40
	@Column(name = "status")
41
	private boolean status;
42
 
43
	public boolean isStatus() {
44
		return status;
45
	}
46
 
47
	public void setStatus(boolean status) {
48
		this.status = status;
49
	}
50
 
28299 tejbeer 51
	public int getId() {
52
		return id;
53
	}
28493 tejbeer 54
 
28299 tejbeer 55
	public void setId(int id) {
56
		this.id = id;
57
	}
28493 tejbeer 58
 
28299 tejbeer 59
	public String getName() {
60
		return name;
61
	}
28493 tejbeer 62
 
28299 tejbeer 63
	public void setName(String name) {
64
		this.name = name;
65
	}
28493 tejbeer 66
 
28299 tejbeer 67
	public String getPhone() {
68
		return phone;
69
	}
28493 tejbeer 70
 
28299 tejbeer 71
	public void setPhone(String phone) {
72
		this.phone = phone;
73
	}
28493 tejbeer 74
 
28299 tejbeer 75
	public String getFax() {
76
		return fax;
77
	}
28493 tejbeer 78
 
28299 tejbeer 79
	public void setFax(String fax) {
80
		this.fax = fax;
81
	}
28493 tejbeer 82
 
28299 tejbeer 83
	public String getTin() {
84
		return tin;
85
	}
28493 tejbeer 86
 
28299 tejbeer 87
	public void setTin(String tin) {
88
		this.tin = tin;
89
	}
28493 tejbeer 90
 
28299 tejbeer 91
	public String getPan() {
92
		return pan;
93
	}
28493 tejbeer 94
 
28299 tejbeer 95
	public void setPan(String pan) {
96
		this.pan = pan;
97
	}
28493 tejbeer 98
 
28299 tejbeer 99
	public String getHeadName() {
100
		return headName;
101
	}
28493 tejbeer 102
 
28299 tejbeer 103
	public void setHeadName(String headName) {
104
		this.headName = headName;
105
	}
28493 tejbeer 106
 
28299 tejbeer 107
	public String getHeadDesignation() {
108
		return headDesignation;
109
	}
28493 tejbeer 110
 
28299 tejbeer 111
	public void setHeadDesignation(String headDesignation) {
112
		this.headDesignation = headDesignation;
113
	}
28493 tejbeer 114
 
28299 tejbeer 115
	public String getHeadEmail() {
116
		return headEmail;
117
	}
28493 tejbeer 118
 
28299 tejbeer 119
	public void setHeadEmail(String headEmail) {
120
		this.headEmail = headEmail;
121
	}
28493 tejbeer 122
 
28299 tejbeer 123
	public String getContactName() {
124
		return contactName;
125
	}
28493 tejbeer 126
 
28299 tejbeer 127
	public void setContactName(String contactName) {
128
		this.contactName = contactName;
129
	}
28493 tejbeer 130
 
28299 tejbeer 131
	public String getContactPhone() {
132
		return contactPhone;
133
	}
28493 tejbeer 134
 
28299 tejbeer 135
	public void setContactPhone(String contactPhone) {
136
		this.contactPhone = contactPhone;
137
	}
28493 tejbeer 138
 
28299 tejbeer 139
	public String getContactFax() {
140
		return contactFax;
141
	}
28493 tejbeer 142
 
28299 tejbeer 143
	public void setContactFax(String contactFax) {
144
		this.contactFax = contactFax;
145
	}
28493 tejbeer 146
 
28299 tejbeer 147
	public String getContactEmail() {
148
		return contactEmail;
149
	}
28493 tejbeer 150
 
28299 tejbeer 151
	public void setContactEmail(String contactEmail) {
152
		this.contactEmail = contactEmail;
153
	}
28493 tejbeer 154
 
28299 tejbeer 155
	public String getRegisteredAddress() {
156
		return registeredAddress;
157
	}
28493 tejbeer 158
 
28299 tejbeer 159
	public void setRegisteredAddress(String registeredAddress) {
160
		this.registeredAddress = registeredAddress;
161
	}
28493 tejbeer 162
 
28299 tejbeer 163
	public String getCommunicationAddress() {
164
		return communicationAddress;
165
	}
28493 tejbeer 166
 
28299 tejbeer 167
	public void setCommunicationAddress(String communicationAddress) {
168
		this.communicationAddress = communicationAddress;
169
	}
28493 tejbeer 170
 
28299 tejbeer 171
	public int getStateId() {
172
		return stateId;
173
	}
28493 tejbeer 174
 
28299 tejbeer 175
	public void setStateId(int stateId) {
176
		this.stateId = stateId;
177
	}
28493 tejbeer 178
 
28299 tejbeer 179
	public int getPoValidityLimit() {
180
		return poValidityLimit;
181
	}
28493 tejbeer 182
 
28299 tejbeer 183
	public void setPoValidityLimit(int poValidityLimit) {
184
		this.poValidityLimit = poValidityLimit;
185
	}
28493 tejbeer 186
 
28299 tejbeer 187
	public String getGstin() {
188
		return gstin;
189
	}
28493 tejbeer 190
 
28299 tejbeer 191
	public void setGstin(String gstin) {
192
		this.gstin = gstin;
193
	}
28493 tejbeer 194
 
28299 tejbeer 195
	public String getTnc() {
196
		return tnc;
197
	}
28493 tejbeer 198
 
28299 tejbeer 199
	public void setTnc(String tnc) {
200
		this.tnc = tnc;
201
	}
28493 tejbeer 202
 
28299 tejbeer 203
	public Supplier() {
204
		super();
205
		// TODO Auto-generated constructor stub
206
	}
28493 tejbeer 207
 
28299 tejbeer 208
	@Override
209
	public String toString() {
210
		return "Supplier [id=" + id + ", name=" + name + ", phone=" + phone + ", fax=" + fax + ", tin=" + tin + ", pan="
211
				+ pan + ", headName=" + headName + ", headDesignation=" + headDesignation + ", headEmail=" + headEmail
212
				+ ", contactName=" + contactName + ", contactPhone=" + contactPhone + ", contactFax=" + contactFax
213
				+ ", contactEmail=" + contactEmail + ", registeredAddress=" + registeredAddress
214
				+ ", communicationAddress=" + communicationAddress + ", stateId=" + stateId + ", poValidityLimit="
215
				+ poValidityLimit + ", gstin=" + gstin + ", tnc=" + tnc + "]";
216
	}
28493 tejbeer 217
 
28299 tejbeer 218
	@Override
219
	public int hashCode() {
220
		final int prime = 31;
221
		int result = 1;
222
		result = prime * result + ((communicationAddress == null) ? 0 : communicationAddress.hashCode());
223
		result = prime * result + ((contactEmail == null) ? 0 : contactEmail.hashCode());
224
		result = prime * result + ((contactFax == null) ? 0 : contactFax.hashCode());
225
		result = prime * result + ((contactName == null) ? 0 : contactName.hashCode());
226
		result = prime * result + ((contactPhone == null) ? 0 : contactPhone.hashCode());
227
		result = prime * result + ((fax == null) ? 0 : fax.hashCode());
228
		result = prime * result + ((gstin == null) ? 0 : gstin.hashCode());
229
		result = prime * result + ((headDesignation == null) ? 0 : headDesignation.hashCode());
230
		result = prime * result + ((headEmail == null) ? 0 : headEmail.hashCode());
231
		result = prime * result + ((headName == null) ? 0 : headName.hashCode());
232
		result = prime * result + id;
233
		result = prime * result + ((name == null) ? 0 : name.hashCode());
234
		result = prime * result + ((pan == null) ? 0 : pan.hashCode());
235
		result = prime * result + ((phone == null) ? 0 : phone.hashCode());
236
		result = prime * result + poValidityLimit;
237
		result = prime * result + ((registeredAddress == null) ? 0 : registeredAddress.hashCode());
238
		result = prime * result + stateId;
239
		result = prime * result + ((tin == null) ? 0 : tin.hashCode());
240
		result = prime * result + ((tnc == null) ? 0 : tnc.hashCode());
241
		return result;
242
	}
28493 tejbeer 243
 
28299 tejbeer 244
	@Override
245
	public boolean equals(Object obj) {
246
		if (this == obj)
247
			return true;
248
		if (obj == null)
249
			return false;
250
		if (getClass() != obj.getClass())
251
			return false;
252
		Supplier other = (Supplier) obj;
253
		if (communicationAddress == null) {
254
			if (other.communicationAddress != null)
255
				return false;
256
		} else if (!communicationAddress.equals(other.communicationAddress))
257
			return false;
258
		if (contactEmail == null) {
259
			if (other.contactEmail != null)
260
				return false;
261
		} else if (!contactEmail.equals(other.contactEmail))
262
			return false;
263
		if (contactFax == null) {
264
			if (other.contactFax != null)
265
				return false;
266
		} else if (!contactFax.equals(other.contactFax))
267
			return false;
268
		if (contactName == null) {
269
			if (other.contactName != null)
270
				return false;
271
		} else if (!contactName.equals(other.contactName))
272
			return false;
273
		if (contactPhone == null) {
274
			if (other.contactPhone != null)
275
				return false;
276
		} else if (!contactPhone.equals(other.contactPhone))
277
			return false;
278
		if (fax == null) {
279
			if (other.fax != null)
280
				return false;
281
		} else if (!fax.equals(other.fax))
282
			return false;
283
		if (gstin == null) {
284
			if (other.gstin != null)
285
				return false;
286
		} else if (!gstin.equals(other.gstin))
287
			return false;
288
		if (headDesignation == null) {
289
			if (other.headDesignation != null)
290
				return false;
291
		} else if (!headDesignation.equals(other.headDesignation))
292
			return false;
293
		if (headEmail == null) {
294
			if (other.headEmail != null)
295
				return false;
296
		} else if (!headEmail.equals(other.headEmail))
297
			return false;
298
		if (headName == null) {
299
			if (other.headName != null)
300
				return false;
301
		} else if (!headName.equals(other.headName))
302
			return false;
303
		if (id != other.id)
304
			return false;
305
		if (name == null) {
306
			if (other.name != null)
307
				return false;
308
		} else if (!name.equals(other.name))
309
			return false;
310
		if (pan == null) {
311
			if (other.pan != null)
312
				return false;
313
		} else if (!pan.equals(other.pan))
314
			return false;
315
		if (phone == null) {
316
			if (other.phone != null)
317
				return false;
318
		} else if (!phone.equals(other.phone))
319
			return false;
320
		if (poValidityLimit != other.poValidityLimit)
321
			return false;
322
		if (registeredAddress == null) {
323
			if (other.registeredAddress != null)
324
				return false;
325
		} else if (!registeredAddress.equals(other.registeredAddress))
326
			return false;
327
		if (stateId != other.stateId)
328
			return false;
329
		if (tin == null) {
330
			if (other.tin != null)
331
				return false;
332
		} else if (!tin.equals(other.tin))
333
			return false;
334
		if (tnc == null) {
335
			if (other.tnc != null)
336
				return false;
337
		} else if (!tnc.equals(other.tnc))
338
			return false;
339
		return true;
340
	}
341
 
342
}