package com.ld.igds.models;
|
|
import com.bstek.dorado.annotation.PropertyDef;
|
import com.ld.igds.constant.Constant;
|
|
import lombok.Data;
|
|
import javax.persistence.Column;
|
import javax.persistence.Entity;
|
import javax.persistence.GeneratedValue;
|
import javax.persistence.GenerationType;
|
import javax.persistence.Id;
|
import javax.persistence.Table;
|
|
import java.io.Serializable;
|
|
/**
|
* 字典信息,粮食产地
|
*
|
*
|
* @author Andy
|
*/
|
@Data
|
@Entity
|
@Table(name = "D_DIC_FOOD_ORIGIN")
|
public class DicFoodOrigin implements Serializable {
|
|
private static final long serialVersionUID = 2988683387356674937L;
|
|
@Id
|
@Column(name = "ID_")
|
@GeneratedValue(strategy = GenerationType.AUTO)
|
private int id;
|
|
@Column(name = "CODE_", length = 50)
|
@PropertyDef(label = "产地编码")
|
private String code;
|
|
@Column(name = "NAME_", length = 50)
|
@PropertyDef(label = "产地名称")
|
private String name;
|
|
@Column(name = "SORT_")
|
@PropertyDef(label = "排序")
|
private int sort = 1000;
|
|
@PropertyDef(label = "产地简拼")
|
@Column(name = "SIMPLE_", length = 20)
|
private String simple;
|
|
@PropertyDef(label = "是否禁用")
|
@Column(name = "DISABLED_TAG_", length = 1)
|
private String disabledTag = Constant.YN_N;
|
|
}
|