-
Notifications
You must be signed in to change notification settings - Fork 865
Expand file tree
/
Copy pathUser.java
More file actions
76 lines (68 loc) · 1.16 KB
/
User.java
File metadata and controls
76 lines (68 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/**
*
*/
package com.opencodez.domain;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
/**
* @author pavan.solapure
*
*/
@Entity
@Table(name = "MYUSERS")
public class User {
@Id
@Column(name = "USER_ID")
private Long id;
@Column(name = "USER_NAME")
private String name;
@Column(name = "SALARY")
private Integer salary;
@Transient
private Integer totalRecords;
/**
* @return the id
*/
public Long getId() {
return id;
}
/**
* @param id the id to set
*/
public void setId(Long id) {
this.id = id;
}
/**
* @return the name
*/
public String getName() {
return name;
}
/**
* @param name the name to set
*/
public void setName(String name) {
this.name = name;
}
/**
* @return the salary
*/
public Integer getSalary() {
return salary;
}
/**
* @param salary the salary to set
*/
public void setSalary(Integer salary) {
this.salary = salary;
}
public Integer getTotalRecords() {
return totalRecords;
}
public void setTotalRecords(Integer totalRecords) {
this.totalRecords = totalRecords;
}
}