1
2
3
4
5 package gboat2.web.model;
6
7 import javax.persistence.Column;
8 import javax.persistence.Entity;
9 import javax.persistence.GeneratedValue;
10 import javax.persistence.Id;
11 import javax.persistence.Table;
12
13 import org.hibernate.annotations.GenericGenerator;
14
15
16
17
18
19 @Entity
20 @Table(name = "G2_T_AUTHORITY")
21 public class Authority {
22
23 private String authId;
24
25
26
27
28
29
30 private String authForId;
31
32
33 private String resId;
34
35
36 private String operaId;
37
38
39 private String useStatus = "1";
40
41 private String systemId;
42
43 @Id
44 @GenericGenerator(name = "generator", strategy = "uuid.hex")
45 @GeneratedValue(generator = "generator")
46 @Column(name = "AUTH_ID", length = 40)
47 public String getAuthId() {
48 return authId;
49 }
50
51 public void setAuthId(String authId) {
52 this.authId = authId;
53 }
54
55 @Column(name = "AUTH_FOR_ID", length = 200)
56 public String getAuthForId() {
57 return authForId;
58 }
59
60 public void setAuthForId(String authForId) {
61 this.authForId = authForId;
62 }
63
64 @Column(name = "RES_ID", length = 40)
65 public String getResId() {
66 return resId;
67 }
68
69 public void setResId(String resId) {
70 this.resId = resId;
71 }
72
73 @Column(name = "OPERA_ID", length = 40)
74 public String getOperaId() {
75 return operaId;
76 }
77
78 public void setOperaId(String operaId) {
79 this.operaId = operaId;
80 }
81
82 @Column(name = "USE_STATUS", length = 1)
83 public String getUseStatus() {
84 return useStatus;
85 }
86
87 public void setUseStatus(String useStatus) {
88 this.useStatus = useStatus;
89 }
90
91 @Column(name = "SYSTEM_ID", length = 40)
92 public String getSystemId() {
93 return systemId;
94 }
95
96 public void setSystemId(String systemId) {
97 this.systemId = systemId;
98 }
99
100 }