openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From JayaPrakash <jponthe...@sify.com>
Subject Re: Orphan deletion in OneToOne
Date Fri, 12 Jun 2009 03:02:56 GMT



JayaPrakash wrote:
> 
> 
> 
> 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 <jpontheweb@sify.com> wrote:
>> 
>>> From: JayaPrakash <jpontheweb@sify.com>
>>> Subject: Orphan deletion in OneToOne
>>> To: dev@openjpa.apache.org
>>> 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
>> 
>> 
>> 
>> 
>> 
> 
> 

I am sorry @Dependent is working.  Thanks for the reply Wang.



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


Mime
View raw message