package com.tykj.workflowcore.model_layer.entity.vo;


import com.tykj.workflowcore.model_layer.entity.Aggregation;

import com.tykj.workflowcore.model_layer.entity.TableInfoEx;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.util.List;

/**
 * @ClassName AggregationVO
 * @Description TODO
 * @Author WWW
 * @Date 2021/4/2 9:51
 * @Version 1.0
 */
@ApiModel("聚合信息")
@Data
public class AggregationVO {

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("描述")
    private String chineseName;

    @ApiModelProperty("描述")
    private String description;

    @ApiModelProperty("主表id")
    private Integer mainTableId;

    @ApiModelProperty("关系集合")
   private List<Aggregation> aggregations;

   public TableInfoEx getTableInfoEx(){
       TableInfoEx tableInfoEx = new TableInfoEx();
       BeanUtils.copyProperties(this,tableInfoEx);
       return  tableInfoEx;
   }
}
