package de.avatic.taric.model;

import java.time.LocalDate;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import de.avatic.taric.serializer.DescriptionSerializer;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.relational.core.mapping.Table;

import jakarta.validation.constraints.Size;


@Getter
@Setter
@Table("footnotes_desc")
public class FootnotesDesc implements Description {

    @JsonIgnore
    private Integer id;

    @Size(max = 2)
    private String lang;

    @JsonSerialize(using = DescriptionSerializer.class)
    private String desc;

    private LocalDate descStartDate;

}
