What's the difference between
@OneToMany(cascade=REMOVE, mappedBy="customer")
public List<Order> getOrders() { ... }
and
@OneToMany(mappedBy="customer", orphanRemoval="true")
public List<Order> getOrders() { ... }
This example is from Java EE Tutorial, but I still don't understand details.
From here:-