Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
29506 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.Id;
8
import javax.persistence.Table;
9
 
10
@Entity
11
@Table(name = "payment.pine_labs", schema = "payment")
12
 
13
public class PineLabs implements Serializable {
14
 
15
	private static final long serialVersionUID = 1L;
16
 
17
	@Id
18
	@Column(name = "id")
19
	private int id;
20
 
21
	@Column(name="po_id")
22
	private int poId;
23
 
24
	@Override
25
	public String toString() {
26
		return "PineLabs [id=" + id + ", poId=" + poId + "]";
27
	}
28
 
29
	public int getId() {
30
		return id;
31
	}
32
 
33
	public void setId(int id) {
34
		this.id = id;
35
	}
36
 
37
	public int getPoId() {
38
		return poId;
39
	}
40
 
41
	public void setPoId(int poId) {
42
		this.poId = poId;
43
	}
44
 
45
	@Override
46
	public int hashCode() {
47
		final int prime = 31;
48
		int result = 1;
49
		result = prime * result + id;
50
		result = prime * result + poId;
51
		return result;
52
	}
53
 
54
	@Override
55
	public boolean equals(Object obj) {
56
		if (this == obj)
57
			return true;
58
		if (obj == null)
59
			return false;
60
		if (getClass() != obj.getClass())
61
			return false;
62
		PineLabs other = (PineLabs) obj;
63
		if (id != other.id)
64
			return false;
65
		if (poId != other.poId)
66
			return false;
67
		return true;
68
	}
69
 
70
 
71
 
72
 
73
 
74
 
75
}
76