package com.izouma.nineth.domain;

import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Transient;
import java.util.ArrayList;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Entity
@ApiModel("配置")
public class Setting extends BaseEntity {
    private int flag;

    private String name;

    private String pic;

    private String description;

    private String type;

    private Long parent;

    @Transient
    private List<Setting> children = new ArrayList<>();
}
