package com.njcn.pojo.configuration;

import com.njcn.sso.pojo.user.User;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;

/**
 * 字典类型表。
 * */
@Table(name="PQS_DICTYPE")
public class DicType {
	
	@Id
	@Column(name="DICTYPE_INDEX")
	private String dicTypeIndex;

	@Column(name="DICTYPE_NAME")
	private String dicTypeName;
	
	@Column(name="DICTYPE_NUMBER")
	private Integer dicTypeNumber; 
	
	@Column(name="DICTYPE_DESCRIBE")
	private String dicTypeDiscribe;
	
	@Column(name="USER_INDEX")
	private String userIndex;
	
	@Column(name="UPDATETIME")
	private Date updateTime;

	@Column(name="STATE")
	private Integer state;
	@Transient
	private User uID;
	public User getuID() {
		return uID;
	}

	public void setuID(User uID) {
		this.uID = uID;
	}

	public String getDicTypeIndex() {
		return dicTypeIndex;
	}

	public void setDicTypeIndex(String dicTypeIndex) {
		this.dicTypeIndex = dicTypeIndex;
	}

	public String getDicTypeName() {
		return dicTypeName;
	}

	public void setDicTypeName(String dicTypeName) {
		this.dicTypeName = dicTypeName;
	}

	public Integer getDicTypeNumber() {
		return dicTypeNumber;
	}

	public void setDicTypeNumber(Integer dicTypeNumber) {
		this.dicTypeNumber = dicTypeNumber;
	}

	public String getDicTypeDiscribe() {
		return dicTypeDiscribe;
	}

	public void setDicTypeDiscribe(String dicTypeDiscribe) {
		this.dicTypeDiscribe = dicTypeDiscribe;
	}

	public String getUserIndex() {
		return userIndex;
	}

	public void setUserIndex(String userIndex) {
		this.userIndex = userIndex;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	@Override
	public String toString() {
		return "DicType{" +
				"dicTypeIndex='" + dicTypeIndex + '\'' +
				", dicTypeName='" + dicTypeName + '\'' +
				", dicTypeNumber=" + dicTypeNumber +
				", dicTypeDiscribe='" + dicTypeDiscribe + '\'' +
				", userIndex='" + userIndex + '\'' +
				", updateTime=" + updateTime +
				", state=" + state +
				", uID=" + uID +
				'}';
	}
}
