Hi,
I need remove a given element from a list. This list is mapped as many to many. The problem is that if my list contains just the element I want to remove, then the changes are not taking effect. Otherwise, it is working correctly. I couldn't find the reason. What could it be?
My mapping:
Code:
@Entity
public class Mesa extends AbstractModel {
@NotEmpty(message = "Não conseguimos identificar alguns dados. Tente sair e entrar de novo.")
@ManyToMany
private List<Cliente> clientes = new ArrayList<Cliente>();
...