Tell me more ×
Code Review Stack Exchange is a question and answer site for peer programmer code reviews. It's 100% free, no registration required.
@MappedSuperclass
public class ClientBase implements Client, Serializable {

    @Id @GeneratedValue
    private Long id;
    private String userName;
    private String password;
    private Map<String, Integer> permissions;
    private String name;
    @Temporal(javax.persistence.TemporalType.DATE)
    private Date birthday;
    private Adress adress;
    private Contact contact;
 ...
share|improve this question

closed as off topic by Jeff Vanzella, Brian Reichle, Corbin, palacsint, sepp2k Nov 15 '12 at 10:24

Questions on Code Review Stack Exchange are expected to relate to code review request within the scope defined in the FAQ. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about closed questions here.

1 Answer

You should use @ManyToMany(cascade = CascadeType.ALL). Please, take a look here and here for details.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.