package com.mandi.system.persist; import java.util.Date; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.EnumType; import javax.persistence.Enumerated; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; import javax.validation.constraints.NotNull; @Entity @Table(name="fd_operation_log") public class Operationlog { @Id @GeneratedValue(strategy=GenerationType.AUTO) private long id; @NotNull(message="操作人不能为空") private String operator; private String departname; private Date ctime=new Date(); @NotNull(message="操作动作不能为空") private String operation; @Enumerated(EnumType.STRING) private ModuleEnum module; //cms,system,...... @Column(columnDefinition="text") private String opresult; private String param1; private String param2; private String param3; public Operationlog( String operator, String departname,OpEnum operation, ModuleEnum module, String opresult) { this.operator = operator; this.departname = departname; this.module = module; this.opresult = opresult; } public Operationlog() { } public long getId() { return id; } public void setId(long id) { this.id = id; } public String getOperator() { return operator; } public void setOperator(String operator) { this.operator = operator; } public Date getCtime() { return ctime; } public void setCtime(Date ctime) { this.ctime = ctime; } public String getOperation() { return operation; } public void setOperation(String operation) { this.operation = operation; } public String getOpresult() { return opresult; } public void setOpresult(String opresult) { this.opresult = opresult; } public String getParam1() { return param1; } public void setParam1(String param1) { this.param1 = param1; } public String getParam2() { return param2; } public void setParam2(String param2) { this.param2 = param2; } public String getParam3() { return param3; } public void setParam3(String param3) { this.param3 = param3; } public String getDepartname() { return departname; } public void setDepartname(String departname) { this.departname = departname; } public ModuleEnum getModule() { return module; } public void setModule(ModuleEnum module) { this.module = module; } }