package cn.lihongjie.coal.employee.entity;

import cn.lihongjie.coal.file.entity.FileEntity;

import io.hypersistence.utils.hibernate.type.array.ListArrayType;

import jakarta.persistence.Column;
import jakarta.persistence.Embeddable;
import jakarta.persistence.Transient;

import lombok.Data;

import org.hibernate.annotations.Comment;
import org.hibernate.annotations.Type;

import java.util.*;

@Data
@Embeddable
public class EmpCarVO {

    @Comment("车辆品牌")
    private String brand;
    @Comment("车辆型号")
    private String model;
    @Comment("颜色")
    private String color;

    @Comment("车牌号")
    private String plateNo;


    @Comment("备注")
    private String remarks;

    @Comment("关联附件")
    @Column(columnDefinition = "text[]")
    @Type(ListArrayType.class)
    private List<String> fileIds;

    @Transient
    private List<FileEntity> files;


}
