feat: add category registration system to admin

This commit is contained in:
2026-01-20 19:05:23 +01:00
parent 4dff0940c1
commit a5d3973394
22 changed files with 941 additions and 180 deletions

View File

@@ -61,6 +61,14 @@ public class CompetitionGuestModel implements CombModel {
)
List<CompetitionGuestModel> guest = new ArrayList<>();
@ManyToMany(fetch = FetchType.LAZY, cascade = CascadeType.PERSIST)
@JoinTable(
name = "categories_insc_guest",
joinColumns = @JoinColumn(name = "guest_id"),
inverseJoinColumns = @JoinColumn(name = "category_id")
)
List<CatPresetModel> categoriesInscrites = new ArrayList<>();
public CompetitionGuestModel(String s) {
this.fname = s.substring(0, s.indexOf(" "));
this.lname = s.substring(s.indexOf(" ") + 1);