users@glassfish.java.net

JPA merge problem

From: <glassfish_at_javadesktop.org>
Date: Sun, 27 May 2007 18:56:56 PDT

hi all,

 Please consider the follwoing example
https://glassfish.dev.java.net/javaee5/persistence/persistence-example.html

In my scenario consider this onetomany relationship as UniDirectional.

The problem is when i update the customer by removing an order,the entity manger MERGE removes only the link but not the entier row realted that order.i.e., removes the CUSTOMER_ID from the ORDER_TABLE,not the entire row.

For this whether i have use Entity manger.remove while updating???

Is anyone faced the same problem???

regards,
sathish
[Message sent by forum member 'sathishbabus' (sathishbabus)]

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