package com.iqser.red.service.persistence.service.v2.api.external.model;

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlCData;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

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

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Entity {

    private String id;
    @JacksonXmlCData
    private String type;
    @JacksonXmlCData
    private String entityRule;
    @JacksonXmlCData
    private String value;

    @Builder.Default
    private Set<Integer> pages = new HashSet<>();
}
