Subversion Repositories SmartDukaan

Rev

Rev 21924 | Rev 22550 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
21716 ashik.ali 1
package com.spice.profitmandi.dao.entity.transaction;
21552 ashik.ali 2
 
3
import javax.persistence.Entity;
4
import javax.persistence.GeneratedValue;
5
import javax.persistence.GenerationType;
6
import javax.persistence.Id;
7
import javax.persistence.Table;
8
 
9
@Entity
10
@Table(name="transaction.userwallet",schema="transaction")
11
public class UserWallet{
12
	/**
13
	 * 
14
	 */
15
	@Id
16
	@GeneratedValue(strategy=GenerationType.IDENTITY)
17
	private int id;
18
	private int userId;
19
	private int amount;
20
	private int refundable_amount;
21
 
22
	public int getId() {
23
		return id;
24
	}
25
	public void setId(int id) {
26
		this.id = id;
27
	}
28
	public int getUserId() {
29
		return userId;
30
	}
31
	public void setUserId(int userId) {
32
		this.userId = userId;
33
	}
34
	public int getAmount() {
35
		return amount;
36
	}
37
	public void setAmount(int amount) {
38
		this.amount = amount;
39
	}
40
	public int getRefundable_amount() {
41
		return refundable_amount;
42
	}
43
	public void setRefundable_amount(int refundable_amount) {
44
		this.refundable_amount = refundable_amount;
45
	}
21924 ashik.ali 46
 
22009 ashik.ali 47
 
21602 ashik.ali 48
	@Override
21924 ashik.ali 49
	public int hashCode() {
50
		final int prime = 31;
51
		int result = 1;
52
		result = prime * result + id;
53
		return result;
54
	}
55
	@Override
56
	public boolean equals(Object obj) {
57
		if (this == obj)
58
			return true;
59
		if (obj == null)
60
			return false;
61
		if (getClass() != obj.getClass())
62
			return false;
63
		UserWallet other = (UserWallet) obj;
64
		if (id != other.id)
65
			return false;
66
		return true;
67
	}
68
	@Override
21602 ashik.ali 69
	public String toString() {
70
		return "UserWallet [id=" + id + ", userId=" + userId + ", amount=" + amount + ", refundable_amount="
71
				+ refundable_amount + "]";
72
	}
73
 
74
 
21552 ashik.ali 75
}