View Javadoc
1   /**
2    * Copyright By Grandsoft Company Limited.  
3    * 2012-3-14 下午04:41:11
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   * @author tanxw
20   * @since jdk1.6
21   * @date 2012-3-14
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  	//快捷图标url
34  	private String iconUrl;  
35  	//用户自定义桌面图标时用户的Id, userId 为空时表示表示该图标为管理员配置的全局快捷图标
36  	private String userId;  
37  	//对resource的引用
38  	private String resId;
39  	//组id
40  	private String groupId;
41  	//角色id
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 }