users@glassfish.java.net

Re: JPA missing hibernate's "delete-orhpan" cascading type

From: <glassfish_at_javadesktop.org>
Date: Tue, 17 Apr 2007 12:36:33 PDT

Hi Martin,

There is no EntityManager.delete() api. Are you refering to the EntityManager.remove()? Even in the EE environment there can be a client side that modifies a set of detached entities without access to an entity manager. EntityManager.merge() is the api that applies modifications made to the detached entities, and yes, there are no rules in the current spec about removing entities from the database that had been removed from a relationship.

regards,
-marina
[Message sent by forum member 'mvatkina' (mvatkina)]

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