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
20
21
22
23
24
25 @Entity
26 @Table(name = "G2_T_SHORTCUT")
27 public class Shortcut {
28
29
30 private String shortcutId;
31
32 private String name;
33
34 private String iconUrl;
35
36 private String userId;
37
38 private String resId;
39
40 private String groupId;
41
42 private String roleId;
43
44 @Id
45 @GenericGenerator(name = "generator", strategy = "uuid.hex")
46 @GeneratedValue(generator = "generator")
47 @Column(name = "SHORTCUT_ID", length = 40)
48 public String getShortcutId() {
49 return shortcutId;
50 }
51
52
53 public void setShortcutId(String shortcutId) {
54 this.shortcutId = shortcutId;
55 }
56
57 @Column(name = "ICON_URL", length = 300)
58 public String getIconUrl() {
59 return iconUrl;
60 }
61
62
63 public void setIconUrl(String iconUrl) {
64 this.iconUrl = iconUrl;
65 }
66
67 @Column(name = "USER_ID", length = 40)
68 public String getUserId() {
69 return userId;
70 }
71
72
73 public void setUserId(String userId) {
74 this.userId = userId;
75 }
76
77 @Column(name = "RES_ID", length = 40)
78 public String getResId() {
79 return resId;
80 }
81
82
83 public void setResId(String resId) {
84 this.resId = resId;
85 }
86
87 @Column(name = "NAME", length = 80)
88 public String getName() {
89 return name;
90 }
91
92 public void setName(String name) {
93 this.name = name;
94 }
95
96 @Column(name = "GROUP_ID", length = 40)
97 public String getGroupId() {
98 return groupId;
99 }
100
101 public void setGroupId(String groupId) {
102 this.groupId = groupId;
103 }
104
105 @Column(name = "ROLE_ID", length = 40)
106 public String getRoleId() {
107 return roleId;
108 }
109
110 public void setRoleId(String roleId) {
111 this.roleId = roleId;
112 }
113
114 }