Hello. I have a Parent and Child entities.
// in the parent @OneToMany(mappedBy = "parent", fetch = FetchType.EAGER, cascade = CascadeType.ALL) private List<Child> children; // in the child @ManyToOne private Parent parent;
Somewhere I do this:
Manager.merge is just
transaction.begin(); entityManager.merge(o); transaction.commit();
But the element isn't removed. Should I remove the children entity too? It works using EntityManagerFactory.