View Javadoc
1   package gboat2.base.core.logging;
2   
3   import java.util.Date;
4   
5   import javax.persistence.Column;
6   import javax.persistence.Entity;
7   import javax.persistence.GeneratedValue;
8   import javax.persistence.Id;
9   import javax.persistence.Table;
10  import javax.persistence.Temporal;
11  import javax.persistence.TemporalType;
12  
13  import org.hibernate.annotations.GenericGenerator;
14  
15  /**
16   * 日志实体信息
17   * @author zhangxj
18   *
19   */
20  @Entity
21  @Table(name = "G2_T_LOG_BUSINESS")
22  public class BusinessLogEntry {
23  	
24  	/** uuid */
25  	private String businessId;
26  	
27  	/** 操作人id */
28  	private String operationId;
29  	
30  	/**注意:此字段不必要 设置 */
31  	private String level;
32  	
33  	/** 操作人名称, */
34  	private String operationName;
35  	
36  	/**登录ip*/
37  	private String ip;
38  	
39  	/** 添加、修改、删除、登录、审核 */
40  	private String operationType;
41  	
42  	/** 操作描述*/
43  	private String operation;
44  	
45  	/**操作时间*/
46  	private Date operationTime;
47  	
48  	/** 操作对象 */
49  	private String operationObject;
50  	
51  	/** 备注 */
52  	private String memo;
53  	
54  	@GenericGenerator(name = "generator", strategy = "uuid.hex")
55  	@Id
56  	@GeneratedValue(generator = "generator")
57  	@Column(name = "BUSINESS_ID", length = 40)
58  	public String getBusinessId() {
59  		return businessId;
60  	}
61  	
62  	public void setBusinessId(String businessId) {
63  		this.businessId = businessId;
64  	}
65  	
66  	@Column(name = "IP")
67  	public String getIp() {
68  		return ip;
69  	}
70  	
71  	public void setIp(String ip) {
72  		this.ip = ip;
73  	}
74  	
75  	@Column(name = "LOG_LEVEL", length = 100)
76  	public String getLevel() {
77  		return level;
78  	}
79  	
80  	public void setLevel(String level) {
81  		this.level = level;
82  	}
83  	
84  	@Column(name = "OPERATIONID", length = 100)
85  	public String getOperationId() {
86  		return operationId;
87  	}
88  	
89  	public void setOperationId(String operationId) {
90  		this.operationId = operationId;
91  	}
92  	
93  	@Column(name = "OPERATIONNAME", length = 1000)
94  	public String getOperationName() {
95  		return operationName;
96  	}
97  	
98  	public void setOperationName(String operationName) {
99  		this.operationName = operationName;
100 	}
101 	
102 	@Column(name = "OPERATIONOBJECT", length = 100)
103 	public String getOperationObject() {
104 		return operationObject;
105 	}
106 	
107 	public void setOperationObject(String operationObject) {
108 		this.operationObject = operationObject;
109 	}
110 	
111 	@Column(name = "OPERATIONTYPE", length = 100)
112 	public String getOperationType() {
113 		return operationType;
114 	}
115 	
116 	public void setOperationType(String operationType) {
117 		this.operationType = operationType;
118 	}
119 	
120 	@Temporal(TemporalType.TIMESTAMP)
121 	@Column(name = "OPERATIONTIME", length = 19)
122 	public Date getOperationTime() {
123 		return operationTime;
124 	}
125 	
126 	public void setOperationTime(Date operationTime) {
127 		this.operationTime = operationTime;
128 	}
129 	
130 	@Column(name = "MEMO", length = 3000)
131 	public String getMemo() {
132 		return memo;
133 	}
134 	
135 	public void setMemo(String memo) {
136 		this.memo = memo;
137 	}
138 	
139 	@Column(name = "OPERATION", length = 300)
140 	public String getOperation() {
141 		return operation;
142 	}
143 	
144 	public void setOperation(String operation) {
145 		this.operation = operation;
146 	}
147 }