import java.util.Set;
@Entity
@Table(name = "users")
public class User {
@Id private String username;
<BUG>@JsonIgnore private String password;
private boolean enabled;</BUG>
private String firstname;
private String lastname;
<BUG>@OneToMany(mappedBy = "username", fetch = FetchType.EAGER)
</BUG>
@JsonManagedReference

import java.util.Set;
@Entity
@Table(name = "users")
public class User {
@Id private String username;
private String password;
private boolean enabled;
private String firstname;
private String lastname;
@OneToMany(mappedBy = "username", fetch = FetchType.EAGER, cascade = CascadeType.ALL)
@JsonManagedReference
