formating and lang

This commit is contained in:
Anthony Stirling
2025-08-01 21:14:12 +01:00
parent a9def611f6
commit 771ce3acfe
2 changed files with 8 additions and 1 deletions

View File

@@ -55,7 +55,11 @@ public class User implements Serializable {
@Column(name = "authenticationtype")
private String authenticationType;
@OneToMany(fetch = FetchType.EAGER, cascade = CascadeType.ALL, mappedBy = "user")
@OneToMany(
fetch = FetchType.EAGER,
cascade = CascadeType.ALL,
mappedBy = "user",
orphanRemoval = true)
private Set<Authority> authorities = new HashSet<>();
@ManyToOne(fetch = FetchType.EAGER)