Subversion Repositories SmartDukaan

Rev

Rev 25545 | Rev 28521 | 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
 
25544 amit.gupta 14
 
21552 ashik.ali 15
	@Id
16
	@GeneratedValue(strategy=GenerationType.IDENTITY)
17
	private int id;
18
	private int userId;
19
	private int amount;
20
 
22550 ashik.ali 21
	@Column(name = "refundable_amount")
22
	private int refundableAmount;
23
 
21552 ashik.ali 24
	public int getId() {
25
		return id;
26
	}
27
	public void setId(int id) {
28
		this.id = id;
29
	}
30
	public int getUserId() {
31
		return userId;
32
	}
25546 amit.gupta 33
 
21552 ashik.ali 34
	public void setUserId(int userId) {
35
		this.userId = userId;
36
	}
37
	public int getAmount() {
25546 amit.gupta 38
		return amount;
21552 ashik.ali 39
	}
40
	public void setAmount(int amount) {
41
		this.amount = amount;
42
	}
22550 ashik.ali 43
	public int getRefundableAmount() {
44
		return refundableAmount;
21552 ashik.ali 45
	}
22550 ashik.ali 46
 
47
	public void setRefundableAmount(int refundableAmount) {
48
		this.refundableAmount = refundableAmount;
21552 ashik.ali 49
	}
21924 ashik.ali 50
 
22009 ashik.ali 51
 
21602 ashik.ali 52
	@Override
21924 ashik.ali 53
	public int hashCode() {
54
		final int prime = 31;
55
		int result = 1;
56
		result = prime * result + id;
57
		return result;
58
	}
59
	@Override
60
	public boolean equals(Object obj) {
61
		if (this == obj)
62
			return true;
63
		if (obj == null)
64
			return false;
65
		if (getClass() != obj.getClass())
66
			return false;
67
		UserWallet other = (UserWallet) obj;
68
		if (id != other.id)
69
			return false;
70
		return true;
71
	}
72
	@Override
21602 ashik.ali 73
	public String toString() {
22550 ashik.ali 74
		return "UserWallet [id=" + id + ", userId=" + userId + ", amount=" + amount + ", refundableAmount="
75
				+ refundableAmount + "]";
21602 ashik.ali 76
	}
77
 
22653 ashik.ali 78
}