View Javadoc
1   /**
2    * Copyright (c) 2009-2010 by Glodon
3    * All rights reserved.
4    */
5   package gboat2.web.model;
6   
7   import java.io.Serializable;
8   
9   import javax.persistence.Column;
10  import javax.persistence.Entity;
11  import javax.persistence.GeneratedValue;
12  import javax.persistence.Id;
13  import javax.persistence.Table;
14  
15  import org.hibernate.annotations.GenericGenerator;
16  
17  /**
18   * @author lysming
19   * 
20   */
21  @Entity
22  @Table(name = "G2_T_GROUP")
23  public class Group implements Serializable{
24  	private String groupId;
25  	//用户组编码
26  	private String groupCode;
27  	//用户组名称
28  	private String groupName;
29  	//默认数据级别(值为levelId)
30  	private String defaultDataLevel;
31  
32  	@Id
33  	@GenericGenerator(name = "generator", strategy = "uuid.hex")
34  	@GeneratedValue(generator = "generator")
35  	@Column(name = "GROUP_ID", length = 40)
36  	public String getGroupId() {
37  		return groupId;
38  	}
39  
40  	public void setGroupId(String groupId) {
41  		this.groupId = groupId;
42  	}
43  
44  	@Column(name = "GROUP_CODE", length = 20)
45  	public String getGroupCode() {
46  		return groupCode;
47  	}
48  
49  	public void setGroupCode(String groupCode) {
50  		this.groupCode = groupCode;
51  	}
52  
53  	@Column(name = "GROUP_NAME", length = 100)
54  	public String getGroupName() {
55  		return groupName;
56  	}
57  
58  	public void setGroupName(String groupName) {
59  		this.groupName = groupName;
60  	}
61  
62  	@Column(name = "DEFAULT_DATA_LEVEL", length = 40)
63  	public String getDefaultDataLevel() {
64  		return defaultDataLevel;
65  	}
66  
67  	public void setDefaultDataLevel(String defaultDataLevel) {
68  		this.defaultDataLevel = defaultDataLevel;
69  	}
70  
71  
72  }