View as "text/plain" | Blame | Last modification | View Log | RSS feed
package com.spice.profitmandi.dao.entity.fofo;import javax.persistence.Column;import javax.persistence.Entity;import javax.persistence.Id;import javax.persistence.Table;@Entity@Table(name="dtr.customer_wallet",schema="transaction")public class CustomerWallet{@Id@Column(unique = true, updatable = false)private int customerId;private int amount;@Column(name = "refundable_amount")private int refundableAmount;@Overridepublic String toString() {return "CustomerWallet [customerId=" + customerId + ", amount=" + amount + ", refundableAmount="+ refundableAmount + "]";}public int getCustomerId() {return customerId;}public void setCustomerId(int customerId) {this.customerId = customerId;}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 + amount;result = prime * result + customerId;result = prime * result + refundableAmount;return result;}@Overridepublic boolean equals(Object obj) {if (this == obj)return true;if (obj == null)return false;if (getClass() != obj.getClass())return false;CustomerWallet other = (CustomerWallet) obj;if (amount != other.amount)return false;if (customerId != other.customerId)return false;if (refundableAmount != other.refundableAmount)return false;return true;}}