package com.dbnt.faisp.equip.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.time.LocalDateTime;


@Getter
@Setter
@Entity
@NoArgsConstructor
@DynamicInsert
@DynamicUpdate
@Table(name = "equ_Log")
public class EquipLog extends BaseModel{
  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  @Column(name = "el_seq")
  private Integer userSeq;
  @Column(name = "equ_type")
  private String equType;
  @Column(name = "detail_type")
  private String detailType;
  @Column(name = "el_contents")
  private String elContents;
  @Column(name = "wrt_nm")
  private String wrtNm;
  @Column(name = "wrt_organ")
  private String wrtOrgan;
  @Column(name = "wrt_dt")
  private LocalDateTime wrtDt;
  
  @Transient
  private String sosok;
  @Transient
  private String detailSosok;
  @Transient
  private String detailName;
  
@Override
public String toString() {
	return "EquipLog [userSeq=" + userSeq + ", equType=" + equType + ", detailType=" + detailType + ", elContents="
			+ elContents + ", wrtNm=" + wrtNm + ", wrtOrgan=" + wrtOrgan + ", wrtDt=" + wrtDt + ", sosok=" + sosok
			+ ", detailSosok=" + detailSosok + ", detailName=" + detailName + "]";
}



}
