package cn.com.poc.approval.model;	

import java.io.Serializable;
import cn.com.yict.framemax.data.model.BaseModelClass;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Id;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Version;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;

/**
 * Model class for biz_approval
 * 审批单
 */
@Entity
@Table(name = "biz_approval")
@DynamicInsert
@DynamicUpdate
public class BizApprovalModel extends BaseModelClass implements Serializable {

    private static final long serialVersionUID = 1L;
    
  
    /** id
    *
    */ 
    private java.lang.Long id;
    
    @Column(name = "id",length = 19)
	@Id @GeneratedValue(strategy = GenerationType.AUTO) 
    public java.lang.Long getId(){
        return this.id;
    }
    
    public void setId(java.lang.Long id){
        this.id = id;
        super.addValidField("id");
    }
    
  
    /** submitter
    *提交人ID
    */ 
    private java.lang.Long submitter;
    
    @Column(name = "submitter",length = 19)
    public java.lang.Long getSubmitter(){
        return this.submitter;
    }
    
    public void setSubmitter(java.lang.Long submitter){
        this.submitter = submitter;
        super.addValidField("submitter");
    }
    
  
    /** approval_type
    *审批类型
    */ 
    private java.lang.String approvalType;
    
    @Column(name = "approval_type",length = 100)
    public java.lang.String getApprovalType(){
        return this.approvalType;
    }
    
    public void setApprovalType(java.lang.String approvalType){
        this.approvalType = approvalType;
        super.addValidField("approvalType");
    }
    
  
    /** approval_status
    *审批状态
    */ 
    private java.lang.String approvalStatus;
    
    @Column(name = "approval_status",length = 100)
    public java.lang.String getApprovalStatus(){
        return this.approvalStatus;
    }
    
    public void setApprovalStatus(java.lang.String approvalStatus){
        this.approvalStatus = approvalStatus;
        super.addValidField("approvalStatus");
    }
    
  
    /** approval_professional
    *审批人ID
    */ 
    private java.lang.Long approvalProfessional;
    
    @Column(name = "approval_professional",length = 19)
    public java.lang.Long getApprovalProfessional(){
        return this.approvalProfessional;
    }
    
    public void setApprovalProfessional(java.lang.Long approvalProfessional){
        this.approvalProfessional = approvalProfessional;
        super.addValidField("approvalProfessional");
    }
    
  
    /** approval_content
    *审核单信息
    */ 
    private java.lang.String approvalContent;
    
    @Column(name = "approval_content",length = 1073741824)
    public java.lang.String getApprovalContent(){
        return this.approvalContent;
    }
    
    public void setApprovalContent(java.lang.String approvalContent){
        this.approvalContent = approvalContent;
        super.addValidField("approvalContent");
    }
    
  
    /** is_deleted
    *是否删除 1、Y 是 2、N 否
    */ 
    private java.lang.String isDeleted;
    
    @Column(name = "is_deleted",length = 1)
    public java.lang.String getIsDeleted(){
        return this.isDeleted;
    }
    
    public void setIsDeleted(java.lang.String isDeleted){
        this.isDeleted = isDeleted;
        super.addValidField("isDeleted");
    }
    
  
    /** CREATOR
    *创建人
    */ 
    private java.lang.String creator;
    
    @Column(name = "CREATOR",length = 225)
    public java.lang.String getCreator(){
        return this.creator;
    }
    
    public void setCreator(java.lang.String creator){
        this.creator = creator;
        super.addValidField("creator");
    }
    
  
    /** CREATED_TIME
    *创建时间
    */ 
    private java.util.Date createdTime;
    
    @Column(name = "CREATED_TIME",length = 19)
    public java.util.Date getCreatedTime(){
        return this.createdTime;
    }
    
    public void setCreatedTime(java.util.Date createdTime){
        this.createdTime = createdTime;
        super.addValidField("createdTime");
    }
    
  
    /** MODIFIER
    *修改人
    */ 
    private java.lang.String modifier;
    
    @Column(name = "MODIFIER",length = 225)
    public java.lang.String getModifier(){
        return this.modifier;
    }
    
    public void setModifier(java.lang.String modifier){
        this.modifier = modifier;
        super.addValidField("modifier");
    }
    
  
    /** MODIFIED_TIME
    *修改时间
    */ 
    private java.util.Date modifiedTime;
    
    @Column(name = "MODIFIED_TIME",length = 19)
    public java.util.Date getModifiedTime(){
        return this.modifiedTime;
    }
    
    public void setModifiedTime(java.util.Date modifiedTime){
        this.modifiedTime = modifiedTime;
        super.addValidField("modifiedTime");
    }
    
  
    /** SYS_VERSION
    *乐观锁,版本号
    */ 
    private java.lang.Integer sysVersion;
    
    @Column(name = "SYS_VERSION",length = 10)
	@Version
    public java.lang.Integer getSysVersion(){
        return this.sysVersion;
    }
    
    public void setSysVersion(java.lang.Integer sysVersion){
        this.sysVersion = sysVersion;
        super.addValidField("sysVersion");
    }
    

}