persistence@glassfish.java.net

Re: TopLink equivalent to Hibernate delete-orphan cascade type

From: Jon Miller <jemiller_at_uchicago.edu>
Date: Thu, 4 Jan 2007 13:59:27 -0600

One other dumb question: Is this a "user" list intended for asking
questions, or, is it supposed to be just for developers working on the
internals of TopLink itself? Normally, Apache has -user and -dev lists, but,
I'm not sure if that's how java.net works or not...

Jon

----- Original Message -----
From: "Jon Miller" <jemiller_at_uchicago.edu>
To: "Glassfish Persistence List" <persistence_at_glassfish.dev.java.net>
Sent: Thursday, January 04, 2007 12:17 PM
Subject: TopLink equivalent to Hibernate delete-orphan cascade type


> Hi all,
>
> Hibernate has a cascade type named "delete-orphan" that will delete
> entities from the database that were removed from an entity's collection
> when it is persisted. I don't see an equivalent in JPA. I take it you just
> have to do it manually? Or, is there a TopLink extension that will do
> this?
>
> Jon
>