remove SocialNetworks
@@ -118,7 +118,7 @@ public class User {
@Column(name = "user_credo")
private String userCredo;
- @OneToMany(mappedBy = "user", fetch = FetchType.LAZY, cascade = CascadeType.ALL)
+ @OneToMany(mappedBy = "user", fetch = FetchType.LAZY, cascade = CascadeType.ALL, orphanRemoval = true)
@Column(name = "social_networks")
private List<SocialNetwork> socialNetworks;
