80 lines
1.6 KiB
Java
80 lines
1.6 KiB
Java
package cn.palmte.work.model;
|
||
|
||
import org.hibernate.annotations.GenericGenerator;
|
||
|
||
import javax.persistence.*;
|
||
import java.util.Date;
|
||
|
||
/**
|
||
* 项目与流程实例的关系
|
||
*/
|
||
@Entity
|
||
@Table(name = "project_instance_relation")
|
||
public class ProjectInstanceRelation {
|
||
/**
|
||
* id
|
||
*/
|
||
@Id
|
||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||
@GenericGenerator(name = "persistenceGenerator", strategy = "increment")
|
||
private Integer id;
|
||
|
||
@Column(name = "project_id")
|
||
private int projectId;
|
||
|
||
/**
|
||
* 流程类型:estimate、budget、settle、final
|
||
*/
|
||
@Column(name = "process_type")
|
||
private String processType;
|
||
|
||
/**
|
||
* 流程实例id
|
||
*/
|
||
@Column(name = "process_ins_id")
|
||
private String processInsId;
|
||
|
||
@Column(name = "create_time")
|
||
@Temporal(TemporalType.TIMESTAMP)
|
||
private Date createTime;
|
||
|
||
public Integer getId() {
|
||
return id;
|
||
}
|
||
|
||
public void setId(Integer id) {
|
||
this.id = id;
|
||
}
|
||
|
||
public int getProjectId() {
|
||
return projectId;
|
||
}
|
||
|
||
public void setProjectId(int projectId) {
|
||
this.projectId = projectId;
|
||
}
|
||
|
||
public String getProcessType() {
|
||
return processType;
|
||
}
|
||
|
||
public void setProcessType(String processType) {
|
||
this.processType = processType;
|
||
}
|
||
|
||
public String getProcessInsId() {
|
||
return processInsId;
|
||
}
|
||
|
||
public void setProcessInsId(String processInsId) {
|
||
this.processInsId = processInsId;
|
||
}
|
||
|
||
public Date getCreateTime() {
|
||
return createTime;
|
||
}
|
||
|
||
public void setCreateTime(Date createTime) {
|
||
this.createTime = createTime;
|
||
}
|
||
} |