package com.dbnt.faisp.main.ivsgtMgt.boardInvestigation.model;

import com.dbnt.faisp.config.BaseModel;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;
import java.util.List;

@Getter
@Setter
@Entity
@NoArgsConstructor
@DynamicInsert
@DynamicUpdate
@Table(name = "related_reports")
public class RelatedReports extends BaseModel {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "related_reports_key")
    private Integer relatedReportsKey;
    @Column(name = "parent_ivsgt_key")
    private Integer parentIvsgtKey;
    @Column(name = "child_ivsgt_key")
    private Integer childIvsgtKey;

    @Transient
    private List<Integer> relatedReportsKeyList;
    @Transient
    private List<Integer> childIvsgtKeyList;
    @Transient
    private List<Integer> deleteKeyList;
    @Transient
    private String contentTitle;
}
