Subversion Repositories SmartDukaan

Rev

Rev 22009 | Rev 22653 | 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
 
22550 ashik.ali 3
import javax.persistence.Column;
21552 ashik.ali 4
import javax.persistence.Entity;
5
import javax.persistence.GeneratedValue;
6
import javax.persistence.GenerationType;
7
import javax.persistence.Id;
8
import javax.persistence.Table;
9
 
10
@Entity
11
@Table(name="transaction.userwallet",schema="transaction")
12
public class UserWallet{
22550 ashik.ali 13
 
21552 ashik.ali 14
	@Id
15
	@GeneratedValue(strategy=GenerationType.IDENTITY)
16
	private int id;
17
	private int userId;
18
	private int amount;
19
 
22550 ashik.ali 20
	@Column(name = "refundable_amount")
21
	private int refundableAmount;
22
 
21552 ashik.ali 23
	public int getId() {
24
		return id;
25
	}
26
	public void setId(int id) {
27
		this.id = id;
28
	}
29
	public int getUserId() {
30
		return userId;
31
	}
32
	public void setUserId(int userId) {
33
		this.userId = userId;
34
	}
35
	public int getAmount() {
36
		return amount;
37
	}
38
	public void setAmount(int amount) {
39
		this.amount = amount;
40
	}
22550 ashik.ali 41
	public int getRefundableAmount() {
42
		return refundableAmount;
21552 ashik.ali 43
	}
22550 ashik.ali 44
 
45
	public void setRefundableAmount(int refundableAmount) {
46
		this.refundableAmount = refundableAmount;
21552 ashik.ali 47
	}
21924 ashik.ali 48
 
22009 ashik.ali 49
 
21602 ashik.ali 50
	@Override
21924 ashik.ali 51
	public int hashCode() {
52
		final int prime = 31;
53
		int result = 1;
54
		result = prime * result + id;
55
		return result;
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
		UserWallet other = (UserWallet) obj;
66
		if (id != other.id)
67
			return false;
68
		return true;
69
	}
70
	@Override
21602 ashik.ali 71
	public String toString() {
22550 ashik.ali 72
		return "UserWallet [id=" + id + ", userId=" + userId + ", amount=" + amount + ", refundableAmount="
73
				+ refundableAmount + "]";
21602 ashik.ali 74
	}
75
 
76
 
21552 ashik.ali 77
}