This commit is contained in:
2024-11-05 20:03:49 +01:00
parent c2bf40c1a4
commit 40d0459de7
6 changed files with 28 additions and 7 deletions
@@ -39,11 +39,11 @@ public class Event implements Serializable {
@Column(name = "cost", precision = 21, scale = 2)
private BigDecimal cost;
@Lob
// @Lob
@Column(name = "comment")
private String comment;
@OneToMany(fetch = FetchType.LAZY, mappedBy = "event")
@OneToMany(fetch = FetchType.EAGER, mappedBy = "event")
@JsonIgnoreProperties(value = { "user", "event" }, allowSetters = true)
private Set<Registration> registrations = new HashSet<>();
@@ -33,7 +33,7 @@ public class Registration implements Serializable {
@Column(name = "player_name")
private String playerName;
@Lob
// @Lob
@Column(name = "comment")
private String comment;