I have 2 object entities (User and Phone) and they are supposed to have many-to-many relations.
User.java
//all columns @ManyToMany(ca
Make the following change.
//User class @ManyToMany(cascade = {CascadeType.MERGE,CascadeType.REMOVE}, fetch = FetchType.EAGER) ... private List phones;