users@glassfish.java.net

Re: JPA: Delete children in OneToMany

From: heapifyman <heapifyman_at_gmail.com>
Date: Tue, 10 Feb 2009 23:37:45 +0100

Am 10.02.2009 um 22:54 schrieb glassfish_at_javadesktop.org:

> I see. Thank you for your answer! I'll be looking forward for JPA
> 2... :-)

I think Hibernate already offers your desired behaviour through the
CascadeType.DELETE_ORPHAN annotation.


>
>
> /Mattias
> [Message sent by forum member 'nightzero' (nightzero)]
>
> http://forums.java.net/jive/thread.jspa?messageID=331130
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>