1
2
3
4 package gboat2.web.model;
5
6 import javax.persistence.Column;
7 import javax.persistence.Entity;
8 import javax.persistence.GeneratedValue;
9 import javax.persistence.Id;
10 import javax.persistence.Table;
11
12 import org.hibernate.annotations.GenericGenerator;
13
14
15
16
17
18 @Entity
19 @Table(name = "G2_T_DATA_LEVEL_AUTHORITY")
20 public class DataLevelAuthority {
21
22 private String authId;
23
24 private String groupId;
25
26 private String roleId;
27
28 private String resId;
29
30
31 private String dataLevel;
32
33
34 private String userId;
35
36 @Id
37 @GenericGenerator(name = "generator", strategy = "uuid.hex")
38 @GeneratedValue(generator = "generator")
39 @Column(name = "AUTH_ID", length = 40)
40 public String getAuthId() {
41 return authId;
42 }
43
44 public void setAuthId(String authId) {
45 this.authId = authId;
46 }
47
48 @Column(name = "GROUP_ID", length = 40)
49 public String getGroupId() {
50 return groupId;
51 }
52
53 public void setGroupId(String groupId) {
54 this.groupId = groupId;
55 }
56
57 @Column(name = "ROLE_ID", length = 40)
58 public String getRoleId() {
59 return roleId;
60 }
61
62 public void setRoleId(String roleId) {
63 this.roleId = roleId;
64 }
65
66 @Column(name = "DATA_LEVEL", length = 40)
67 public String getDataLevel() {
68 return dataLevel;
69 }
70
71 public void setDataLevel(String dataLevel) {
72 this.dataLevel = dataLevel;
73 }
74
75 @Column(name = "RES_ID", length = 40)
76 public String getResId() {
77 return resId;
78 }
79
80 public void setResId(String resId) {
81 this.resId = resId;
82 }
83
84 @Column(name = "USER_ID", length = 40)
85 public String getUserId() {
86 return userId;
87 }
88
89 public void setUserId(String userId) {
90 this.userId = userId;
91 }
92
93 }