Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @ManyToMany
- @JoinTable(name = "ETAPA_ENVOLVIDOS", joinColumns = @JoinColumn(name = "etapa_id"), inverseJoinColumns = @JoinColumn(name = "conta_id"))
- private Set<Conta> envolvidos = new HashSet<>();
- public void removerEnvolvido(Conta conta) {
- this.envolvidos.remove(conta);
- }
- public void removerTodosEnvolvidos() {
- if(!this.envolvidos.isEmpty()) {
- for (Conta aux : this.envolvidos) {
- removerEnvolvido(aux);
- }
- }
- }
Add Comment
Please, Sign In to add comment