/*
|
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
|
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
|
*/
|
package com.megatim.fdxconvert.model;
|
|
import com.megatim.fdxconvert.enums.JournalStatut;
|
import java.io.Serializable;
|
import java.time.LocalDate;
|
import java.time.LocalDateTime;
|
import javax.persistence.Entity;
|
import javax.persistence.EnumType;
|
import javax.persistence.Enumerated;
|
import javax.persistence.GeneratedValue;
|
import javax.persistence.Id;
|
import lombok.Getter;
|
import lombok.NoArgsConstructor;
|
import lombok.Setter;
|
|
/**
|
*
|
* @author ASUS
|
*/
|
@Entity
|
@Getter
|
@Setter
|
@NoArgsConstructor
|
public class Journal implements Serializable {
|
|
@Id
|
@GeneratedValue
|
private Long id;
|
|
private LocalDateTime dateAction;
|
|
private String sourceFileName;
|
|
private String sourceDirectory;
|
|
private String destinationDirectory;
|
|
private String destinationFileName;
|
|
@Enumerated(EnumType.STRING)
|
private JournalStatut statut;
|
|
private LocalDate localDateAction;
|
|
private String codeTypefichier;
|
|
private long nombreLignes;
|
|
public Journal(LocalDateTime dateAction,JournalStatut statut, String codeTypefichier) {
|
this.dateAction = dateAction;
|
this.statut = statut;
|
this.codeTypefichier = codeTypefichier;
|
}
|
}
|