package com.upyuns.platform.rs.universal.entity;

import lombok.Data;

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

@Data
@Table(name = "data_dictionary")
public class Dictionary implements Serializable {
    @Id
    private Integer id;

    /**
     * 类型
     */
    private String type;

    /**
     * 编码
     */
    private String code;

    /**
     * 父类Id
     */
    private Integer pid;

    private String name;

    private String detail;


    @Transient
    private Set<Dictionary> childrens;

}