Nope, JPA currently does not have orphan delete, but look forward to it in Java EE 6. They have definitely been discussing it and are very close to finishing that add on into the spec.
As JPA is copied from Hibernate mainly, why they didn't include every thing? For example, why they didn't include delete-orphan cascade type? Any technical issues?
Mike Keith
author
Ranch Hand
Joined: Jul 14, 2005
Posts: 304
posted
0
Originally posted by John Todd: As JPA is copied from Hibernate mainly, why they didn't include every thing? For example, why they didn't include delete-orphan cascade type? Any technical issues?
There are 3 parts to the answer:
1. Because JPA is NOT copied from Hibernate, Hibernate just happens to be one of 5 major implementations 2. Because we didn't (and still don't) believe that the Hibernate way of doing it is necessarily the best way 3. Because we didn't have enough time to put in every single feature that every ORM vendor provided