Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
21545 ashik.ali 1
package com.spice.profitmandi.dao.entity;
2
 
3
import javax.persistence.Entity;
4
import javax.persistence.EnumType;
5
import javax.persistence.Enumerated;
6
import javax.persistence.GeneratedValue;
7
import javax.persistence.GenerationType;
8
import javax.persistence.Id;
9
import javax.persistence.Table;
10
 
11
import com.spice.profitmandi.dao.enumuration.AccountType;
12
 
13
@Entity
14
@Table(name="user_accounts",schema="dtr")
15
public class UserAccounts{
16
	/**
17
	 * 
18
	 */	
19
	@Id
20
	@GeneratedValue(strategy=GenerationType.IDENTITY)
21
	private int id;
22
	private int user_id;
23
	@Enumerated(EnumType.STRING)
24
	private AccountType account_type ;
25
	private String account_key;
26
 
27
	public int getId() {
28
		return id;
29
	}
30
	public void setId(int id) {
31
		this.id = id;
32
	}
33
	public int getUser_id() {
34
		return user_id;
35
	}
36
	public void setUser_id(int user_id) {
37
		this.user_id = user_id;
38
	}
39
	public AccountType getAccount_type() {
40
		return account_type;
41
	}
42
	public void setAccount_type(AccountType account_type) {
43
		this.account_type = account_type;
44
	}
45
	public String getAccount_key() {
46
		return account_key;
47
	}
48
	public void setAccount_key(String account_key) {
49
		this.account_key = account_key;
50
	}
21602 ashik.ali 51
	@Override
52
	public String toString() {
53
		return "UserAccounts [id=" + id + ", user_id=" + user_id + ", account_type=" + account_type + ", account_key="
54
				+ account_key + "]";
55
	}
21545 ashik.ali 56
 
21602 ashik.ali 57
 
21545 ashik.ali 58
}