Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > DeepCopy problems with dissolved proxy

Thread Tools

DeepCopy problems with dissolved proxy

Posts: n/a
I get myself construct me from data base entries an object structure.
And make one deepcopy from this object structure. So far so well.
The problem is in the copied object structure not all proxys are

That is, with accessed the dissolved objects, I get a big bang.

Do you know about a solution to dissolved the proxy before or during
the deepcopy?

My persistence framework is hibernate!

public abstract class HibernatePersistentDomainObject implements
HibernatePersistentDomain, Serializable{
public static Object deepCopy()
ByteArrayOutputStream myBAOutputStream = new
new ObjectOutputStream( myBAOutputStream ).writeObject( this
ByteArrayInputStream myByteArrayInputStream = new
ByteArrayInputStream( baos.toByteArray() );
return new ObjectInputStream(myByteArrayInputStream
catch(Exception e){
ServerLog.error("DeepCopy failed!");
return null;



Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
deepcopy and file object attributes Dan Perl Python 0 09-14-2004 07:47 PM
deepcopy raises TypeError for method/function? OKB (not okblacke) Python 3 09-10-2004 06:17 AM
deepcopy in new-style classes Donnal Walter Python 0 06-22-2004 06:02 PM
Legitimacy of deepcopy Eugeni Doljenko Python 2 06-07-2004 09:38 PM
Deepcopy on XML node in python2.2 problem Python 0 09-08-2003 07:38 PM