This commit is contained in:
2024-11-13 17:22:43 +01:00
parent e51b15a114
commit f41a08d52e
2 changed files with 2 additions and 1 deletions
@@ -25,7 +25,7 @@ public class UserAccount implements Serializable {
@Column(name = "name")
private String name;
@ManyToMany(fetch = FetchType.EAGER, cascade = CascadeType.ALL)
@ManyToMany(fetch = FetchType.EAGER)
@JoinTable(
name = "rel_user_account__user",
joinColumns = @JoinColumn(name = "user_account_id"),
@@ -190,6 +190,7 @@ public class EventService {
userAccount.setName(registration.getUser().getName());
userAccount.getUsers().add(registration.getUser());
userAccount = userAccountRepository.save(userAccount);
accountsByLogin.put(login, userAccount);
}
accountsToCharge.add(userAccount);
});