package com.iqser.red.service.persistence.management.v1.processor.entity.dossier;

import java.io.Serializable;

import jakarta.persistence.Column;
import jakarta.persistence.Embeddable;
import jakarta.persistence.EmbeddedId;
import jakarta.persistence.Entity;
import jakarta.persistence.Table;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Entity
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "file_attribute")
public class FileAttributeEntity {

    @EmbeddedId
    private FileAttributeEntityId fileAttributeId;

    @Column(length = 4000)
    private String value;

    @Data
    @Embeddable
    @NoArgsConstructor
    @AllArgsConstructor
    public static class FileAttributeEntityId implements Serializable {

        @Column(name = "file_id")
        private String fileId;

        @Column(name = "file_attribute_config_id")
        private String fileAttributeConfigId;

    }

}


