Bom dia,
tenho um pojo Pessoas e naum consego excluir usando o remove(Obj), qnd tento excluir
da o seguinte erro
"org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1"
meu metodo excluir é o seguinte:
public void excluir(Integer id) {
manager.getTransaction().begin();
manager.remove(manager.getReference(getClasse(), id));
manager.getTransaction().commit();
}
alguem tem uma ideia, do q possa ser?
Obrigado