feat: support decimal on weight

This commit is contained in:
2026-02-13 21:42:48 +01:00
parent 2fd09af0ea
commit d857fce71f
9 changed files with 19 additions and 19 deletions

View File

@@ -43,8 +43,8 @@ public class CompetitionGuestModel implements CombModel {
String country = "fr";
Integer weight = null;
Integer weightReal = null;
Float weight = null;
Float weightReal = null;
@ManyToMany(fetch = FetchType.EAGER, cascade = CascadeType.PERSIST)
@JoinTable(
@@ -109,7 +109,7 @@ public class CompetitionGuestModel implements CombModel {
return Stream.concat(comb.stream(), guest.stream()).anyMatch(c -> Objects.equals(c, comb_));
}
public Integer getWeight2() {
public Float getWeight2() {
return (this.weightReal != null) ? this.weightReal : this.weight;
}
}