package com.dbnt.faisp.main.fipTarget.model;

import com.dbnt.faisp.config.BaseModel;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;

import java.io.Serializable;


@Getter
@Setter
@Entity
@NoArgsConstructor
@DynamicInsert
@DynamicUpdate
@IdClass(PartWorkFile.PartWorkFileId.class)
@Table(name = "part_work_file")
public class PartWorkFile extends BaseModel implements Serializable{
  @Id
  @Column(name = "file_seq")
  private Integer fileSeq;
  @Id
  @Column(name = "pw_seq")
  private Integer pwSeq;
  @Id
  @Column(name = "pi_seq")
  private Integer piSeq;
  @Column(name = "orig_nm")
  private String origNm;
  @Column(name = "conv_nm")
  private String convNm;
  @Column(name = "file_extn")
  private String fileExtn;
  @Column(name = "file_size")
  private String fileSize;
  @Column(name = "file_path")
  private String filePath;
  

  




@Override
public String toString() {
	return "PartWorkFile [fileSeq=" + fileSeq + ", pwSeq=" + pwSeq + ", piSeq=" + piSeq + ", origNm=" + origNm
			+ ", convNm=" + convNm + ", fileExtn=" + fileExtn + ", fileSize=" + fileSize + ", filePath=" + filePath
			+ "]";
}







@Embeddable
@Data
@NoArgsConstructor
@AllArgsConstructor
public static class PartWorkFileId implements Serializable {
  private Integer fileSeq;
  private Integer pwSeq;
  private Integer piSeq; 
}
















}
