package cn.com.poc.covenant.model;

import cn.com.yict.framemax.data.model.BaseModelClass;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;
import java.io.Serializable;

/**
 * Model class for biz_extreaction_contract_type
 * 合同审查-合同类型
 */
@Entity
@Table(name = "biz_extreaction_contract_type")
@DynamicInsert
@DynamicUpdate
public class BizExtreactionContractTypeModel extends BaseModelClass implements Serializable {

    private static final long serialVersionUID = 1L;
    
  
    /** id
    *
    */ 
    private Integer id;
    
    @Column(name = "id",length = 10)
	@Id @GeneratedValue(strategy = GenerationType.AUTO) 
    public Integer getId(){
        return this.id;
    }
    
    public void setId(Integer id){
        this.id = id;
        super.addValidField("id");
    }
    
  
    /** contract_code
    *合同类型-代码
    */ 
    private String contractCode;
    
    @Column(name = "contract_code",length = 100)
    public String getContractCode(){
        return this.contractCode;
    }
    
    public void setContractCode(String contractCode){
        this.contractCode = contractCode;
        super.addValidField("contractCode");
    }
    
  
    /** contract_name
    *合同类型名
    */ 
    private String contractName;
    
    @Column(name = "contract_name",length = 100)
    public String getContractName(){
        return this.contractName;
    }
    
    public void setContractName(String contractName){
        this.contractName = contractName;
        super.addValidField("contractName");
    }


    /** contract_type
     *合同类型名
     */
    private String contractType;
    @Column(name = "contract_type",length = 100)
    public String getContractType() {
        return contractType;
    }

    public void setContractType(String contractType) {
        this.contractType = contractType;
        super.addValidField("contractType");
    }
}