wip: affiliation
This commit is contained in:
@@ -45,6 +45,8 @@ public class ClubModel {
|
||||
|
||||
String contact_intern;
|
||||
|
||||
String address;
|
||||
|
||||
String RNA;
|
||||
|
||||
Long SIRET;
|
||||
|
||||
@@ -53,6 +53,6 @@ public class MembreModel {
|
||||
|
||||
String url_photo;
|
||||
|
||||
@OneToMany(mappedBy = "membre", fetch = FetchType.LAZY)
|
||||
@OneToMany(mappedBy = "membre", fetch = FetchType.LAZY, cascade = CascadeType.ALL)
|
||||
List<LicenceModel> licences;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
package fr.titionfire.ffsaf.data.model;
|
||||
|
||||
import fr.titionfire.ffsaf.utils.SequenceType;
|
||||
import io.quarkus.runtime.annotations.RegisterForReflection;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
import lombok.*;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@RegisterForReflection
|
||||
|
||||
@Entity
|
||||
@Table(name = "sequence")
|
||||
public class SequenceModel {
|
||||
@Id
|
||||
SequenceType type;
|
||||
|
||||
long value;
|
||||
}
|
||||
Reference in New Issue
Block a user