Subversion Repositories SmartDukaan

Rev

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