Subversion Repositories SmartDukaan

Rev

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

Rev 22352 Rev 23269
Line 1... Line 1...
1
package com.spice.profitmandi.dao.entity.dtr;
1
package com.spice.profitmandi.dao.entity.dtr;
2
 
2
 
-
 
3
import javax.persistence.Column;
3
import javax.persistence.Entity;
4
import javax.persistence.Entity;
4
import javax.persistence.EnumType;
5
import javax.persistence.EnumType;
5
import javax.persistence.Enumerated;
6
import javax.persistence.Enumerated;
6
import javax.persistence.GeneratedValue;
7
import javax.persistence.GeneratedValue;
7
import javax.persistence.GenerationType;
8
import javax.persistence.GenerationType;
Line 10... Line 11...
10
 
11
 
11
import com.spice.profitmandi.dao.enumuration.dtr.AccountType;
12
import com.spice.profitmandi.dao.enumuration.dtr.AccountType;
12
 
13
 
13
@Entity
14
@Entity
14
@Table(name="dtr.user_accounts",schema="dtr")
15
@Table(name="dtr.user_accounts",schema="dtr")
15
public class UserAccounts{
16
public class UserAccount{
16
	/**
17
	/**
17
	 * 
18
	 * 
18
	 */	
19
	 */	
19
	@Id
20
	@Id
20
	@GeneratedValue(strategy=GenerationType.IDENTITY)
21
	@GeneratedValue(strategy=GenerationType.IDENTITY)
21
	private int id;
22
	private int id;
-
 
23
	
-
 
24
	@Column(name = "user_id")
22
	private int user_id;
25
	private int userId;
23
	
26
	
24
	@Enumerated(EnumType.STRING)
27
	@Enumerated(EnumType.STRING)
-
 
28
	@Column(name = "account_type")
25
	private AccountType account_type ;
29
	private AccountType type ;
26
	
30
	
-
 
31
	@Column(name = "account_key")
27
	private String account_key;
32
	private String accountKey;
28
	
33
	
29
	
34
	
30
	public int getId() {
35
	public int getId() {
31
		return id;
36
		return id;
32
	}
37
	}
33
	public void setId(int id) {
38
	public void setId(int id) {
34
		this.id = id;
39
		this.id = id;
35
	}
40
	}
36
	public int getUser_id() {
41
	public int getUserId() {
37
		return user_id;
42
		return userId;
38
	}
43
	}
39
	public void setUser_id(int user_id) {
44
	public void setUserId(int userId) {
40
		this.user_id = user_id;
45
		this.userId = userId;
41
	}
46
	}
42
	public AccountType getAccount_type() {
47
	public AccountType getType() {
43
		return account_type;
48
		return type;
44
	}
49
	}
45
	public void setAccount_type(AccountType account_type) {
50
	public void setType(AccountType accountType) {
46
		this.account_type = account_type;
51
		this.type = accountType;
47
	}
52
	}
48
	public String getAccount_key() {
53
	public int getAccountKey() {
49
		return account_key;
54
		return Integer.parseInt(accountKey);
50
	}
55
	}
51
	public void setAccount_key(String account_key) {
56
	public void setAccountKey(int accountKey) {
52
		this.account_key = account_key;
57
		this.accountKey = String.valueOf(accountKey);
53
	}
58
	}
54
	
59
	
55
	
60
	
56
	@Override
61
	@Override
57
	public int hashCode() {
62
	public int hashCode() {
Line 66... Line 71...
66
			return true;
71
			return true;
67
		if (obj == null)
72
		if (obj == null)
68
			return false;
73
			return false;
69
		if (getClass() != obj.getClass())
74
		if (getClass() != obj.getClass())
70
			return false;
75
			return false;
71
		UserAccounts other = (UserAccounts) obj;
76
		UserAccount other = (UserAccount) obj;
72
		if (id != other.id)
77
		if (id != other.id)
73
			return false;
78
			return false;
74
		return true;
79
		return true;
75
	}
80
	}
76
	@Override
81
	@Override
77
	public String toString() {
82
	public String toString() {
78
		return "UserAccounts [id=" + id + ", user_id=" + user_id + ", account_type=" + account_type + ", account_key="
83
		return "UserAccounts [id=" + id + ", userId=" + userId + ", accountType=" + type + ", accountKey="
79
				+ account_key + "]";
84
				+ accountKey + "]";
80
	}
85
	}
81
	
86
	
82
	
-
 
83
}
87
}
84
88