57 lines
1.1 KiB
Java
57 lines
1.1 KiB
Java
package fr.titionfire.ffsaf.data.model;
|
|
|
|
import fr.titionfire.ffsaf.utils.Contact;
|
|
import io.quarkus.runtime.annotations.RegisterForReflection;
|
|
import jakarta.persistence.*;
|
|
import lombok.*;
|
|
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Builder
|
|
@AllArgsConstructor
|
|
@NoArgsConstructor
|
|
@RegisterForReflection
|
|
|
|
@Entity
|
|
@Table(name = "club")
|
|
public class ClubModel {
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
Long id;
|
|
|
|
String clubId;
|
|
|
|
String name;
|
|
|
|
String country;
|
|
|
|
String shieldURL;
|
|
|
|
//@Enumerated(EnumType.STRING)
|
|
@ElementCollection
|
|
@CollectionTable(name = "club_contact_mapping",
|
|
joinColumns = {@JoinColumn(name = "club_id", referencedColumnName = "id")})
|
|
@MapKeyColumn(name = "contact_type")
|
|
Map<Contact, String> contact;
|
|
|
|
String training_location;
|
|
|
|
String training_day_time;
|
|
|
|
String contact_intern;
|
|
|
|
String RNA;
|
|
|
|
String SIRET;
|
|
|
|
String no_affiliation;
|
|
|
|
boolean international;
|
|
|
|
@OneToMany(mappedBy = "club", fetch = FetchType.EAGER)
|
|
List<AffiliationModel> affiliations;
|
|
}
|