content: /**
   * * Copyright &copy; 2015-2020 <a href="https://gitee.com/JeeHuangBingGui/JeeSpring">JeeSpring</a> All rights reserved..
   */
  package com.jeespring.modules.sys.entity;
  
  import javax.validation.constraints.NotNull;
  import javax.xml.bind.annotation.XmlAttribute;
  
  import org.hibernate.validator.constraints.Length;
  
  import com.jeespring.common.persistence.AbstractBaseEntity;
  
  /**
   * 字典Entity
   * @author 黄炳桂 516821420@qq.com
   * @version 2013-05-15
   */
  public class Dict extends AbstractBaseEntity<Dict> {
  
  	private static final long serialVersionUID = 1L;
  	private String value;	// 数据值
  	private String label;	// 标签名
  	private String type;	// 类型
  	private String description;// 描述
  	private Integer sort;	// 排序
  	private String parentId;//父Id
  	private String picture;//图片
  
  	public Dict() {
  		super();
  	}
  	
  	public Dict(String id){
  		super(id);
  	}
  	
  	public Dict(String value, String label){
  		this.value = value;
  		this.label = label;
  	}
  	
  	@XmlAttribute
  	@Length(min=1, max=100)
  	public String getValue() {
  		return value;
  	}
  
  	public void setValue(String value) {
  		this.value = value;
  	}
  	
  	@XmlAttribute
  	@Length(min=1, max=100)
  	public String getLabel() {
  		return label;
  	}
  
  	public void setLabel(String label) {
  		this.label = label;
  	}
  
  	@Length(min=1, max=100)
  	public String getType() {
  		return type;
  	}
  
  	public void setType(String type) {
  		this.type = type;
  	}
  
  	@XmlAttribute
  	@Length(min=0, max=100)
  	public String getDescription() {
  		return description;
  	}
  
  	public void setDescription(String description) {
  		this.description = description;
  	}
  
  	@NotNull
  	public Integer getSort() {
  		return sort;
  	}
  
  	public void setSort(Integer sort) {
  		this.sort = sort;
  	}
  
  	@Length(min=1, max=100)
  	public String getParentId() {
  		return parentId;
  	}
  
  	public void setParentId(String parentId) {
  		this.parentId = parentId;
  	}
  
  	public String getPicture() {
  		return picture;
  	}
  
  	public void setPicture(String picture) {
  		this.picture = picture;
  	}
  
  	@Override
  	public String toString() {
  		return label;
  	}
  }