Fay Wang wrote:
> 
> 
> You might want to use Dependent for One-to-One relation orphan deletion. 
> 
> [1]
> http://openjpa.apache.org/docs/openjpa-0.9.0-incubating/manual/manual.html#dependent
> 
> Hope this helps.
> 
> Fay
> 
> --- On Thu, 6/11/09, JayaPrakash <[email protected]> wrote:
> 
>> From: JayaPrakash <[email protected]>
>> Subject: Orphan deletion in OneToOne
>> To: [email protected]
>> Date: Thursday, June 11, 2009, 2:36 PM
>> 
>> Hi,
>> 
>>        OpenJPA does support Orphan
>> deletion with @ElementDependent in
>> OneToMany relationship. Does anyone suggest how the same
>> can be done when we
>> have OneToOne relationship among objects?
>> 
>> Appreciate your response.
>> 
>> Thanks,
>> JP
>> 
>> 
>> -- 
>> View this message in context:
>> http://n2.nabble.com/Orphan-deletion-in-OneToOne-tp3064596p3064596.html
>> Sent from the OpenJPA Developers mailing list archive at
>> Nabble.com.
>> 
>> 
> 
> Wang,
> 
>         I really appreciate your reply. But unfortunately that @Dependent
> annotation is not supported by the OpenJPA version(1.2.0) that we are
> using. 
> 
> Could anybody suggest the workaround for this pls?
> 
> Thanks,
> JP
> 
> 
> 
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/Orphan-deletion-in-OneToOne-tp3064596p3065318.html
Sent from the OpenJPA Developers mailing list archive at Nabble.com.

Reply via email to