RE: Delete or merge, update or merge ?

2009-08-14 Thread C N Davies
nal Message- From: Daryl Stultz [mailto:da...@6degrees.com] Sent: Friday, 14 August 2009 10:24 PM To: users@openjpa.apache.org Subject: Re: Delete or merge, update or merge ? On Thu, Aug 13, 2009 at 1:13 PM, C N Davies wrote: > The model relationships should manage all aspects of the mode

Re: Delete or merge, update or merge ?

2009-08-14 Thread Daryl Stultz
On Thu, Aug 13, 2009 at 1:13 PM, C N Davies wrote: > The model relationships should manage all aspects of the model. Suppose you had A with children B where the collection of B is hundreds of thousands or more. How would you go about deleting a set of them that met certain criteria? Load in the

RE: Delete or merge, update or merge ?

2009-08-13 Thread C N Davies
[mailto:ravi.palache...@oracle.com] Sent: Thursday, 13 August 2009 9:41 PM To: users@openjpa.apache.org Subject: RE: Delete or merge, update or merge ? Hi , I guess, If you mergeA with one less B , then the association between A and B will be lost but the instance of B will not be deleted. If you call

RE: Delete or merge, update or merge ?

2009-08-13 Thread Ravi Palacherla
[mailto:j-b.bri...@novlog.com] Sent: Thursday, August 13, 2009 3:24 AM To: users@openjpa.apache.org Subject: Re: Delete or merge, update or merge ? up : any advice on that point ? On Aug 8, 2009, at 08:57 , Jean-Baptiste BRIAUD -- Novlog wrote: > Hi, > > say I have one instance to d

Re: Delete or merge, update or merge ?

2009-08-13 Thread Jean-Baptiste BRIAUD -- Novlog
up : any advice on that point ? On Aug 8, 2009, at 08:57 , Jean-Baptiste BRIAUD -- Novlog wrote: Hi, say I have one instance to delete, an instance of B knowing that A contains one to many B. Should I merge A with one less B, that should delete the required B or should I explicitly delet

Delete or merge, update or merge ?

2009-08-07 Thread Jean-Baptiste BRIAUD -- Novlog
Hi, say I have one instance to delete, an instance of B knowing that A contains one to many B. Should I merge A with one less B, that should delete the required B or should I explicitly delete that B with a delete by query or should I use the remove(thatB) API ? What are the differences