openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pinaki Poddar <ppod...@apache.org>
Subject Re: Refresh myself!
Date Fri, 22 May 2009 12:36:40 GMT

> Ok, I get it. So there's no way to "reattach" an instance directly then?

There is if you pierce the public API boundary. Try

   JPAFacadeHelper.toBroker(em).transactional(Object pc, boolean
updateVersion,
        OpCallbacks call);




Daryl Stultz wrote:
> 
> On Thu, May 21, 2009 at 8:50 PM, Pinaki Poddar <ppoddar@apache.org> wrote:
> 
>>
>> Hi Daryl,
>>     something like:
>>  /**
>>   * Pour the persistent state of the given other instance into this
>> (detached) instance.
>>   * Some sort of reverse Object.clone().
>>   * The implementation has to decide whether to deep copy or not.
>>  **/
> 
> 
> Ok, I get it. So there's no way to "reattach" an instance directly then?
> 
> PS: "copy constructor" is a constructor that takes an instance of the same
>> type as input argument. Was popular in C++ days.
>>
>> I'm afraid I missed that. I guess I'm too young. That's what I'll keep
> telling myself.
> 
> -- 
> Daryl Stultz
> _____________________________________
> 6 Degrees Software and Consulting, Inc.
> http://www.6degrees.com
> mailto:daryl@6degrees.com
> 
> 


-----
Pinaki Poddar                      http://ppoddar.blogspot.com/
                                      
http://www.linkedin.com/in/pinakipoddar
OpenJPA PMC Member/Committer
JPA Expert Group Member
-- 
View this message in context: http://n2.nabble.com/Refresh-myself%21-tp2954027p2957118.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.


Mime
View raw message