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

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.IdClass;
import jakarta.persistence.Lob;
import jakarta.persistence.Table;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name = "rule_set")
@IdClass(RuleSetEntityKey.class)
public class RuleSetEntity {

    @Id
    @Column
    private String dossierTemplateId;

    @Id
    @Column
    private String ruleFileType;

    @Column
    private long version;

    @Lob
    @Column(name = "value", columnDefinition = "TEXT")
    private String value;

    @Column
    private boolean timeoutDetected;

}
