Subversion Repositories SmartDukaan

Rev

Rev 24417 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
24407 govind 1
package com.spice.profitmandi.dao.entity.cs;
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
/**
13
 * This class basically contains api details
14
 * 
15
 * @author Govind
16
 *
17
 */
18
 
19
@Entity
20
@Table(name="cs.partner_region", schema = "cs")
21
public class PartnerRegion implements Serializable{
22
 
23
	private static final long serialVersionUID = 1L;
24
 
25
 
26
	@Id
27
	@Column(name="region_id")
28
	private int regionId;
29
 
30
	@Id
31
	@Column(name="fofo_id")
32
	private int fofoId;
33
 
34
	public int getRegionId() {
35
		return regionId;
36
	}
37
 
38
	public void setRegionId(int regionId) {
39
		this.regionId = regionId;
40
	}
41
 
42
	public int getFofoId() {
43
		return fofoId;
44
	}
45
 
46
	public void setFofoId(int fofoId) {
47
		this.fofoId = fofoId;
48
	}
49
 
50
	@Override
51
	public int hashCode() {
52
		final int prime = 31;
53
		int result = 1;
54
		result = prime * result + fofoId;
55
		result = prime * result + regionId;
56
		return result;
57
	}
58
 
59
	@Override
60
	public boolean equals(Object obj) {
61
		if (this == obj)
62
			return true;
63
		if (obj == null)
64
			return false;
65
		if (getClass() != obj.getClass())
66
			return false;
67
		PartnerRegion other = (PartnerRegion) obj;
68
		if (fofoId != other.fofoId)
69
			return false;
70
		if (regionId != other.regionId)
71
			return false;
72
		return true;
73
	}
74
 
75
	@Override
76
	public String toString() {
77
		return "PartnerRegion [regionId=" + regionId + ", fofoId=" + fofoId + "]";
78
	}
79
 
80
 
81
 
82
 
83
}