users@glassfish.java.net

Re: Cascade delete problem, JPA

From: <glassfish_at_javadesktop.org>
Date: Mon, 09 Feb 2009 11:17:06 PST

Hi Marina,

No, I only delete A instances in the transaction, like:
public void deleteA(A a)
{
        A managed = em.merge(a);
        em.remove(managed);
}

Thanks,
Mattias
[Message sent by forum member 'nightzero' (nightzero)]

http://forums.java.net/jive/thread.jspa?messageID=330893