Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
26715 amit.gupta 1
package com.spice.profitmandi.dao.entity.fofo;
2
 
3
import java.io.Serializable;
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 = "fofo.pincode_partner", schema = "fofo")
14
public class PincodePartner implements Serializable {
15
 
16
	private static final long serialVersionUID = 1L;
17
 
18
	@Id
19
	@Column(name = "id", unique = true, updatable = false)
20
	@GeneratedValue(strategy = GenerationType.IDENTITY)
21
	private int id;
22
 
23
	@Column(name = "fofo_id")
24
	private int fofoId;
25
 
26
	@Column(name = "pincode")
27
	private String pincode;
28
 
29
	@Override
30
	public String toString() {
31
		return "PincodePartner [id=" + id + ", fofoId=" + fofoId + ", pincode=" + pincode + "]";
32
	}
33
 
34
	public int getId() {
35
		return id;
36
	}
37
 
38
	public void setId(int id) {
39
		this.id = id;
40
	}
41
 
42
	public int getFofoId() {
43
		return fofoId;
44
	}
28381 tejbeer 45
 
26715 amit.gupta 46
 
28381 tejbeer 47
	public String getPincode() {
48
		return pincode;
49
	}
50
 
51
	public void setPincode(String pincode) {
52
		this.pincode = pincode;
53
	}
54
 
26715 amit.gupta 55
	public void setFofoId(int fofoId) {
56
		this.fofoId = fofoId;
57
	}
58
 
59
	@Override
60
	public int hashCode() {
61
		final int prime = 31;
62
		int result = 1;
63
		result = prime * result + fofoId;
64
		result = prime * result + id;
65
		result = prime * result + ((pincode == null) ? 0 : pincode.hashCode());
66
		return result;
67
	}
68
 
69
	@Override
70
	public boolean equals(Object obj) {
71
		if (this == obj)
72
			return true;
73
		if (obj == null)
74
			return false;
75
		if (getClass() != obj.getClass())
76
			return false;
77
		PincodePartner other = (PincodePartner) obj;
78
		if (fofoId != other.fofoId)
79
			return false;
80
		if (id != other.id)
81
			return false;
82
		if (pincode == null) {
83
			if (other.pincode != null)
84
				return false;
85
		} else if (!pincode.equals(other.pincode))
86
			return false;
87
		return true;
88
	}
89
 
90
 
91
}