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.annotation.Id;

import jakarta.validation.constraints.Size;

@Getter
@Setter
public class GeoDesc implements Description{

	@Id
    @JsonIgnore
	private Integer id;

    @Size(max = 2)
    private String lang;

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

    private LocalDate descStartDate;


	
}
