package com.dbnt.faisp.main.faStatistics.crackdownsStatus.model.processResult;

import com.dbnt.faisp.main.faStatistics.crackdownsStatus.model.crackdownStatus.CrackdownStatus;
import com.dbnt.faisp.main.faStatistics.crackdownsStatus.model.fishingBoat.FishingBoat;
import com.dbnt.faisp.main.faStatistics.crackdownsStatus.model.fishingBoat.Violation;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.springframework.format.annotation.DateTimeFormat;

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

@Getter
@Setter
@Entity
@NoArgsConstructor
@DynamicInsert
@DynamicUpdate
@Table(name = "process_result")
public class ProcessResult extends ProcessResultBaseEntity {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "pr_key")
    private Integer prKey;

    @Column(name = "cds_key")
    private Integer cdsKey;
    @Transient
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime updDt;
    @Transient
    private CrackdownStatus crackdownStatus;
    @Transient
    private List<Violation> violationList;
    @Transient
    private FishingBoat fishingBoat;
    @Transient
    private String boatNameKr;

    @Transient
    private Integer fbKey;
    @Transient
    private String processStatusEtc;
    @Transient
    private String executionDetailEtc;
    @Transient
    private List<CrackdownStatus> crackdownStatusList;
    @Transient
    private List<FishingBoat> fishingBoatList;

    @Transient
    private String caseNum;
    @Transient
    private String crackdownPolice;
    @Transient
    private String year;
    @Transient
    private String violation;
}
