70%
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.pmu.betengine.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.pmu.betengine.model.statut.StatutAgent;
|
||||
import jakarta.persistence.*;
|
||||
@@ -62,6 +63,10 @@ public class Agent {
|
||||
|
||||
private Integer maxPeripheriques;
|
||||
|
||||
@OneToMany(mappedBy = "agent")
|
||||
@JsonIgnore
|
||||
private List<TPE> tpes;
|
||||
|
||||
@Column(name = "limit_id")
|
||||
private Long limitId;
|
||||
|
||||
@@ -86,67 +91,4 @@ public class Agent {
|
||||
|
||||
@Column(name = "created_by")
|
||||
private String createdBy;
|
||||
}
|
||||
|
||||
// @Table(name = "agent")
|
||||
// public class Agent {
|
||||
// @Id
|
||||
// @GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
// private Long id;
|
||||
|
||||
// private String code;
|
||||
// private String profile;
|
||||
// private String principalCode;
|
||||
// private String caisseProfile;
|
||||
// private StatutAgent statut;
|
||||
// private String zone;
|
||||
// private String kiosk;
|
||||
// private String fonction;
|
||||
// @Pattern(regexp = "^\\d{2}/\\d{2}/\\d{4}$", message = "La date doit être au format dd/MM/yyyy")
|
||||
// @JsonFormat(pattern = "dd/MM/yyyy", shape = JsonFormat.Shape.STRING)
|
||||
// private LocalDate dateEmbauche;
|
||||
// @NotBlank(message = "Le nom est obligatoire")
|
||||
// private String nom;
|
||||
// private String prenom;
|
||||
// private String autresNoms;
|
||||
// @Pattern(regexp = "^\\d{2}/\\d{2}/\\d{4}$", message = "La date de naissance doit être au format dd/MM/yyyy")
|
||||
// @Column(name = "date_naissance", nullable = false)
|
||||
// @JsonFormat(pattern = "dd/MM/yyyy", shape = JsonFormat.Shape.STRING)
|
||||
// private LocalDate dateNaissance;
|
||||
// private String lieuNaissance;
|
||||
// private String ville;
|
||||
// private String adresse;
|
||||
// private Boolean autoriserAides;
|
||||
// private String phone;
|
||||
// private String pin;
|
||||
// private Double limiteInferieure;
|
||||
// private Double limiteSuperieure;
|
||||
// private Double limiteParTransaction;
|
||||
// private Double limiteMinAirtime;
|
||||
// private Double limiteMaxAirtime;
|
||||
// private Integer maxPeripheriques;
|
||||
// private String limitId;
|
||||
// // Légales
|
||||
// private String nationalite;
|
||||
// private String cni;
|
||||
// private String cniDelivreeLe;
|
||||
// private String cniDelivreeA;
|
||||
// private String residence;
|
||||
// private String autreAdresse1;
|
||||
// private String statutMarital;
|
||||
// private String epoux;
|
||||
// private String autreTelephone;
|
||||
// // Situation familiale
|
||||
// @OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL)
|
||||
// @JoinTable(name = "agent_famille",
|
||||
// joinColumns = @JoinColumn(name = "agent_id"),
|
||||
// inverseJoinColumns = @JoinColumn(name = "famille_id"))
|
||||
// private List<AgentFamilyMember> famille;
|
||||
// // TPE assignés
|
||||
// private String [] assignedTpeIds;
|
||||
// @CreationTimestamp
|
||||
// private LocalDateTime createdAt;
|
||||
// @UpdateTimestamp
|
||||
// private LocalDateTime updatedAt;
|
||||
// private String createdBy;
|
||||
// }
|
||||
}
|
||||
Reference in New Issue
Block a user