package de.avatic.taric.model;

import java.util.HashSet;
import java.util.Set;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.MappedCollection;

import jakarta.validation.constraints.Size;

@Getter
@Setter
public class MonetaryUnit {

	@Id
    @JsonIgnore
    private Integer id;

    @Size(max = 3)
    private String monetaryUnitCode;

    @MappedCollection(idColumn = "ref_id")
	private Set<MonetaryUnitDesc> monetaryUnitDesc;

}
