Kenmegne
7 days ago 1bc8864f134272c4bf23a9b05831803a423a4771
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package com.megatim.apifdxweb.model.audit;
 
import java.io.Serializable;
import java.time.LocalDateTime;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.validation.constraints.NotEmpty;
import lombok.Getter;
import lombok.Setter;
 
/**
 *
 * @author ASUS
 */
@Entity
@Table(name = "audit_actions_participant")
@Getter
@Setter
public class AuditActionsParticipant implements Serializable {
 
    @SequenceGenerator(name = "SEQ_AUDIT_ACTIONS_PARTICIPANT",
            sequenceName = "SEQ_AUDIT_ACTIONS_PARTICIPANT",
            allocationSize = 1,
            initialValue = 1)
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_AUDIT_ACTIONS_PARTICIPANT")
    @Id
    private Long id;
 
    @Column(name = "participant_demandeur")
    @NotEmpty(message = "Le participant qui effectue l'action est obligatoire")
    private String participantDemandeur;
 
    @Column(name = "type_fichier_consulte")
    @NotEmpty(message = "Le type ficier est consulté est obligatoire")
    private String typeFichierConsulte;
 
    @Column(name = "last_index_read")
    private int lastIndexRead;
 
    @Column(name = "date_action")
    private LocalDateTime dateAction;//date consultation, modification, ou ajout
 
 
}