59 lines
1.1 KiB
Java
59 lines
1.1 KiB
Java
package fr.titionfire.ffsaf.data.model;
|
|
|
|
import fr.titionfire.ffsaf.utils.Categorie;
|
|
import fr.titionfire.ffsaf.utils.Genre;
|
|
import fr.titionfire.ffsaf.utils.GradeArbitrage;
|
|
import fr.titionfire.ffsaf.utils.RoleAsso;
|
|
import io.quarkus.runtime.annotations.RegisterForReflection;
|
|
import jakarta.persistence.*;
|
|
import lombok.*;
|
|
|
|
import java.util.Date;
|
|
import java.util.List;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Builder
|
|
@AllArgsConstructor
|
|
@NoArgsConstructor
|
|
@RegisterForReflection
|
|
|
|
@Entity
|
|
@Table(name = "membre")
|
|
public class MembreModel {
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
Long id;
|
|
|
|
String userId;
|
|
|
|
String lname;
|
|
String fname;
|
|
|
|
Categorie categorie;
|
|
|
|
@ManyToOne(fetch = FetchType.EAGER)
|
|
@JoinColumn(name = "club", referencedColumnName = "id")
|
|
ClubModel club;
|
|
|
|
Genre genre;
|
|
|
|
int licence;
|
|
|
|
String country;
|
|
|
|
Date birth_date;
|
|
|
|
String email;
|
|
|
|
RoleAsso role;
|
|
|
|
GradeArbitrage grade_arbitrage;
|
|
|
|
String url_photo;
|
|
|
|
@OneToMany(mappedBy = "membre", fetch = FetchType.LAZY)
|
|
List<LicenceModel> licences;
|
|
}
|