package com.dbnt.sims.fipTarget.model;

import com.dbnt.sims.config.BaseModel;


import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.springframework.web.multipart.MultipartFile;

import javax.persistence.*;


import java.time.LocalDateTime;
import java.util.List;



@Getter
@Setter
@Entity
@NoArgsConstructor
@DynamicInsert
@DynamicUpdate
@Table(name = "board_vuln")
public class Vulnerable extends BaseModel{
  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  @Column(name = "vuln_key")
  private Integer vulnKey;
  @Column(name = "mgt_organ")
  private String mgtOrgan;
  @Column(name = "vuln_type")
  private String vulnType;
  @Column(name = "vuln_nm")
  private String vulnNm;
  @Column(name = "description")
  private String description;
  @Column(name = "wrt_organ")
  private String wrtOrgan;
  @Column(name = "wrt_part")
  private String wrtPart;
  @Column(name = "wrt_user_seq")
  private Integer wrtUserSeq; 
  @Column(name = "wrt_nm")
  private String wrtNm;
  @Column(name = "wrt_dt")
  private LocalDateTime wrtDt;
  
  @Transient
  private List<MultipartFile> multipartFileList;
  
  @Transient
  private String organNm;
  
  @Transient
  private List<VulnFile> fileList;

@Override
public String toString() {
	return "Vulnerable [vulnKey=" + vulnKey + ", mgtOrgan=" + mgtOrgan + ", vulnType=" + vulnType + ", vulnNm=" + vulnNm
			+ ", description=" + description + ", wrtOrgan=" + wrtOrgan + ", wrtPart=" + wrtPart + ", wrtUserSeq="
			+ wrtUserSeq + ", wrtNm=" + wrtNm + ", wrtDt=" + wrtDt + ", multipartFileList=" + multipartFileList
			+ ", organNm=" + organNm + ", fileList=" + fileList + "]";
}


  


























}
