All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.lframework.gen.bo.dataobj.GetDataObjectBo Maven / Gradle / Ivy

package com.lframework.gen.bo.dataobj;

import com.lframework.gen.dto.dataobj.DataObjectDto;
import com.lframework.starter.web.bo.BaseBo;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
public class GetDataObjectBo extends BaseBo {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    private String id;

    /**
     * 编号
     */
    private String code;

    /**
     * 名称
     */
    private String name;

    /**
     * 类型 1 数据库单表
     */
    private Integer type;

    /**
     * 状态
     */
    private Boolean available;

    /**
     * 备注
     */
    private String description;

    public GetDataObjectBo() {

    }

    public GetDataObjectBo(DataObjectDto dto) {

        super(dto);
    }

    @Override
    public  BaseBo convert(DataObjectDto dto) {

        return super.convert(dto, GetDataObjectBo::getType);
    }

    @Override
    protected void afterInit(DataObjectDto dto) {

        this.type = dto.getType().getCode();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy