I'm trying to do bulk delete in my entities, and the best solution will be to go with CriteriaDelete
. But CriteriaDelete
does not cascade (at least not for me).
So, it seems like the only solution which I have is to do select first and delete each element separately. Which does not seems wrong to me.
Is anyone have a better idea of how to do bulk delete? Is it actually a better way?
If it helps I'm using EclipseLink 2.5.2.
The options are: