1
2
3
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
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
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 }