afda
This commit is contained in:
@@ -25,7 +25,7 @@ public class UserAccount implements Serializable {
|
|||||||
@Column(name = "name")
|
@Column(name = "name")
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
@ManyToMany(fetch = FetchType.EAGER, cascade = CascadeType.ALL)
|
@ManyToMany(fetch = FetchType.EAGER)
|
||||||
@JoinTable(
|
@JoinTable(
|
||||||
name = "rel_user_account__user",
|
name = "rel_user_account__user",
|
||||||
joinColumns = @JoinColumn(name = "user_account_id"),
|
joinColumns = @JoinColumn(name = "user_account_id"),
|
||||||
|
|||||||
@@ -190,6 +190,7 @@ public class EventService {
|
|||||||
userAccount.setName(registration.getUser().getName());
|
userAccount.setName(registration.getUser().getName());
|
||||||
userAccount.getUsers().add(registration.getUser());
|
userAccount.getUsers().add(registration.getUser());
|
||||||
userAccount = userAccountRepository.save(userAccount);
|
userAccount = userAccountRepository.save(userAccount);
|
||||||
|
accountsByLogin.put(login, userAccount);
|
||||||
}
|
}
|
||||||
accountsToCharge.add(userAccount);
|
accountsToCharge.add(userAccount);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user