Skip to Content
0
Former Member
Oct 27, 2009 at 07:06 AM

SAP-JPA: "Orphan Removal" supported?

84 Views

Hi,

in JPA 2.0 you can mark associations (@OneToOne, @OneToMany) with an "orphanRemoval" flag. If orphanRemoval is set to true on an association, a child that is removed from the association is also deleted from the database during the flush operation.

Today, Hibernate and EclipseLink support the concept (in EclipseLink it is called @PrivateOwned, in Hibernate "delete-orphan").

Is this concept currently supported in SAP-JPA?

Kind regrads

Jan