Rev 21924 | Rev 22352 | 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.dtr;import javax.persistence.Entity;import javax.persistence.EnumType;import javax.persistence.Enumerated;import javax.persistence.GeneratedValue;import javax.persistence.GenerationType;import javax.persistence.Id;import javax.persistence.Table;import com.spice.profitmandi.dao.enumuration.dtr.AccountType;@Entity@Table(name="dtr.user_accounts",schema="dtr")public class UserAccounts{/****/@Id@GeneratedValue(strategy=GenerationType.IDENTITY)private int id;private int user_id;@Enumerated(EnumType.STRING)private AccountType account_type ;private String account_key;public int getId() {return id;}public void setId(int id) {this.id = id;}public int getUser_id() {return user_id;}public void setUser_id(int user_id) {this.user_id = user_id;}public AccountType getAccount_type() {return account_type;}public void setAccount_type(AccountType account_type) {this.account_type = account_type;}public String getAccount_key() {return account_key;}public void setAccount_key(String account_key) {this.account_key = account_key;}@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;UserAccounts other = (UserAccounts) obj;if (id != other.id)return false;return true;}@Overridepublic String toString() {return "UserAccounts [id=" + id + ", user_id=" + user_id + ", account_type=" + account_type + ", account_key="+ account_key + "]";}}