Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
22653 ashik.ali 1
package com.spice.profitmandi.dao.entity.fofo;
2
 
3
import java.io.Serializable;
4
 
5
import javax.persistence.Column;
6
import javax.persistence.EmbeddedId;
7
import javax.persistence.Entity;
8
import javax.persistence.Id;
9
import javax.persistence.Table;
10
 
11
@Entity
12
@Table(name="fofo.scheme_in", schema = "fofo")
13
 
14
public class SchemeIn implements Serializable{
15
 
16
	private static final long serialVersionUID = 1L;
17
 
18
	@Id
19
	@EmbeddedId
20
	private SchemeInId id;
21
 
22
	@Column(name = "amount")
23
	private float amount;
24
 
25
	public SchemeInId getId() {
26
		return id;
27
	}
28
 
29
	public void setId(SchemeInId id) {
30
		this.id = id;
31
	}
32
 
33
	public float getAmount() {
34
		return amount;
35
	}
36
 
37
	public void setAmount(float amount) {
38
		this.amount = amount;
39
	}
40
 
41
	@Override
42
	public int hashCode() {
43
		final int prime = 31;
44
		int result = 1;
45
		result = prime * result + id.hashCode();
46
		return result;
47
	}
48
	@Override
49
	public boolean equals(Object obj) {
50
		if (this == obj)
51
			return true;
52
		if (obj == null)
53
			return false;
54
		if (getClass() != obj.getClass())
55
			return false;
56
		SchemeIn other = (SchemeIn) obj;
57
		if (id != other.id)
58
			return false;
59
		return true;
60
	}
61
 
62
	@Override
63
	public String toString() {
64
		return "SchemeIn [id=" + id + ", amount=" + amount + "]";
65
	}
66
}