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_OPERATION")
21 public class Operation {
22
23 private String operationId;
24
25
26 private String operationName;
27
28
29 private String operationCode;
30
31
32 private String template;
33
34
35 private String resId;
36
37 @Column(name = "RES_ID", length = 40)
38 public String getResId() {
39 return resId;
40 }
41
42 public void setResId(String resId) {
43 this.resId = resId;
44 }
45
46 @Id
47 @GenericGenerator(name = "generator", strategy = "uuid.hex")
48 @GeneratedValue(generator = "generator")
49 @Column(name = "OPERATION_ID", length = 40)
50 public String getOperationId() {
51 return operationId;
52 }
53
54 public void setOperationId(String operationId) {
55 this.operationId = operationId;
56 }
57
58 @Column(name = "OPERATION_NAME", length = 40)
59 public String getOperationName() {
60 return operationName;
61 }
62
63 public void setOperationName(String operationName) {
64 this.operationName = operationName;
65 }
66
67 @Column(name = "OPERATION_CODE", length = 50)
68 public String getOperationCode() {
69 return operationCode;
70 }
71
72 public void setOperationCode(String operationCode) {
73 this.operationCode = operationCode;
74 }
75
76 @Column(name = "TEMPLATE", length = 200)
77 public String getTemplate() {
78 return template;
79 }
80
81 public void setTemplate(String template) {
82 this.template = template;
83 }
84
85 }