document.java

来自「这是一个jbpm的高级应用,是一个oa工作流的系统,里面用到了spring,hi」· Java 代码 · 共 117 行

JAVA
117
字号
package com.bjsxt.oa.model;

import java.util.Date;
import java.util.Map;

/**
 * 公文实体
 * @author Administrator
 * @hibernate.class table="T_Document"
 */
public class Document {
	
	public static final String STATUS_NEW = "新建";
	public static final String STATUS_END = "结束";
	
	/**
	 * 公文标识
	 * @hibernate.id
	 * 		generator-class="native"
	 */
	private int id;
	
	/**
	 * 公文名称
	 * @hibernate.property
	 */
	private String name;
	
	/**
	 * 公文描述
	 * @hibernate.property
	 */
	private String description;
	
	/**
	 * 公文附件
	 * @hibernate.property
	 * 		type="binary"
	 * 		length="99999999"
	 */
	private byte[] attachment;
	
	/**
	 * 创建时间
	 * @hibernate.property
	 */
	private Date createTime;
	
	/**
	 * 创建者
	 * @hibernate.many-to-one
	 */
	private User creator;
	
	/**
	 * 流程
	 * @hibernate.property
	 */
	private String workflow;
	
	/**
	 * 公文状态
	 * @hibernate.property
	 */
	private String status = STATUS_NEW;
	
	public byte[] getAttachment() {
		return attachment;
	}
	public void setAttachment(byte[] attachment) {
		this.attachment = attachment;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public User getCreator() {
		return creator;
	}
	public void setCreator(User creator) {
		this.creator = creator;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getWorkflow() {
		return workflow;
	}
	public void setWorkflow(String workflow) {
		this.workflow = workflow;
	}

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?