Rev 25545 | Rev 29990 | Go to most recent revision | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed
package com.spice.profitmandi.dao.entity.transaction;import javax.persistence.Column;import javax.persistence.Entity;import javax.persistence.GeneratedValue;import javax.persistence.GenerationType;import javax.persistence.Id;import javax.persistence.Table;@Entity@Table(name="transaction.userwallet",schema="transaction")public class UserWallet{@Id@GeneratedValue(strategy=GenerationType.IDENTITY)private int id;private int userId;private int amount;@Column(name = "refundable_amount")private int refundableAmount;public int getId() {return id;}public void setId(int id) {this.id = id;}public int getUserId() {return userId;}public void setUserId(int userId) {this.userId = userId;}public int getAmount() {return amount;}public void setAmount(int amount) {this.amount = amount;}public int getRefundableAmount() {return refundableAmount;}public void setRefundableAmount(int refundableAmount) {this.refundableAmount = refundableAmount;}@Overridepublic int hashCode() {final int prime = 31;int result = 1;result = prime * result + id;return result;}@Overridepublic boolean equals(Object obj) {if (this == obj)return true;if (obj == null)return false;if (getClass() != obj.getClass())return false;UserWallet other = (UserWallet) obj;if (id != other.id)return false;return true;}@Overridepublic String toString() {return "UserWallet [id=" + id + ", userId=" + userId + ", amount=" + amount + ", refundableAmount="+ refundableAmount + "]";}}