Subversion Repositories SmartDukaan

Rev

Rev 22009 | Rev 22653 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 22009 Rev 22550
Line 1... Line 1...
1
package com.spice.profitmandi.dao.entity.transaction;
1
package com.spice.profitmandi.dao.entity.transaction;
2
 
2
 
-
 
3
import javax.persistence.Column;
3
import javax.persistence.Entity;
4
import javax.persistence.Entity;
4
import javax.persistence.GeneratedValue;
5
import javax.persistence.GeneratedValue;
5
import javax.persistence.GenerationType;
6
import javax.persistence.GenerationType;
6
import javax.persistence.Id;
7
import javax.persistence.Id;
7
import javax.persistence.Table;
8
import javax.persistence.Table;
8
 
9
 
9
@Entity
10
@Entity
10
@Table(name="transaction.userwallet",schema="transaction")
11
@Table(name="transaction.userwallet",schema="transaction")
11
public class UserWallet{
12
public class UserWallet{
12
	/**
-
 
13
	 * 
-
 
14
	 */
13
	
15
	@Id
14
	@Id
16
	@GeneratedValue(strategy=GenerationType.IDENTITY)
15
	@GeneratedValue(strategy=GenerationType.IDENTITY)
17
	private int id;
16
	private int id;
18
	private int userId;
17
	private int userId;
19
	private int amount;
18
	private int amount;
-
 
19
	
-
 
20
	@Column(name = "refundable_amount")
20
	private int refundable_amount;
21
	private int refundableAmount;
21
	
22
	
22
	public int getId() {
23
	public int getId() {
23
		return id;
24
		return id;
24
	}
25
	}
25
	public void setId(int id) {
26
	public void setId(int id) {
Line 35... Line 36...
35
		return amount;
36
		return amount;
36
	}
37
	}
37
	public void setAmount(int amount) {
38
	public void setAmount(int amount) {
38
		this.amount = amount;
39
		this.amount = amount;
39
	}
40
	}
40
	public int getRefundable_amount() {
41
	public int getRefundableAmount() {
41
		return refundable_amount;
42
		return refundableAmount;
42
	}
43
	}
-
 
44
	
43
	public void setRefundable_amount(int refundable_amount) {
45
	public void setRefundableAmount(int refundableAmount) {
44
		this.refundable_amount = refundable_amount;
46
		this.refundableAmount = refundableAmount;
45
	}
47
	}
46
	
48
	
47
	
49
	
48
	@Override
50
	@Override
49
	public int hashCode() {
51
	public int hashCode() {
Line 65... Line 67...
65
			return false;
67
			return false;
66
		return true;
68
		return true;
67
	}
69
	}
68
	@Override
70
	@Override
69
	public String toString() {
71
	public String toString() {
70
		return "UserWallet [id=" + id + ", userId=" + userId + ", amount=" + amount + ", refundable_amount="
72
		return "UserWallet [id=" + id + ", userId=" + userId + ", amount=" + amount + ", refundableAmount="
71
				+ refundable_amount + "]";
73
				+ refundableAmount + "]";
72
	}
74
	}
73
	
75
	
74
	
76
	
75
}
77
}