View Javadoc
1   /**
2    * Copyright (c) 2009-2010 by Glodon
3    * All rights reserved.
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   * @author lysming
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  	//操作编码(一般对应Action的方法名称)
29  	private String operationCode;
30  
31  	//模板(预留)
32  	private String template;
33  
34  	//所属resource
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  }