Subversion Repositories SmartDukaan

Rev

Rev 31170 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
31170 amit.gupta 1
package com.spice.profitmandi.dao.entity.catalog;
2
 
3
import javax.persistence.Column;
4
import javax.persistence.Entity;
5
import javax.persistence.Id;
6
import javax.persistence.Table;
7
import java.io.Serializable;
8
import java.util.Objects;
9
 
10
@Entity
31860 tejbeer 11
@Table(name = "fofo.scheme_region")
31170 amit.gupta 12
public class SchemeRegion implements Serializable {
13
 
14
	private static final long serialVersionUID = 1L;
15
 
16
	@Id
17
	@Column(name = "scheme_id")
18
	private int schemeId;
19
 
20
	@Id
21
	@Column(name = "region_id")
22
	private int regionId;
23
 
24
	@Override
25
	public boolean equals(Object o) {
26
		if (this == o) return true;
27
		if (o == null || getClass() != o.getClass()) return false;
28
		SchemeRegion that = (SchemeRegion) o;
29
		return schemeId == that.schemeId && regionId == that.regionId;
30
	}
31
 
32
	@Override
33
	public int hashCode() {
34
		return Objects.hash(schemeId, regionId);
35
	}
36
 
37
	@Override
38
	public String toString() {
39
		return "SchemeRegion{" +
40
				"schemeId=" + schemeId +
41
				", catalogId=" + regionId +
42
				'}';
43
	}
44
 
45
	public int getSchemeId() {
46
		return schemeId;
47
	}
48
 
49
	public void setSchemeId(int schemeId) {
50
		this.schemeId = schemeId;
51
	}
52
 
53
	public int getRegionId() {
54
		return regionId;
55
	}
56
 
57
	public void setRegionId(int catalogId) {
58
		this.regionId = catalogId;
59
	}
60
}