You can use ByteArray to deep copy an object. Can't recall off the top of my 
head the code but I'm sure you could find it via the Google. :-)

On 16/02/2010, at 8:00 AM, Nick Middleweek wrote:

> Hi,
> 
> Are there any working utilities/code out there that can help me with a deep 
> object copy?
> 
> I have an Object that is about 4-5 levels deep and some of the elements are 
> ArrayCollections of CustomObjects that have nested Objects. Basically it's 
> quite complex! :-)
> 
> My understanding is that ObjectUtils.copy(sourceObject) -> destinationObject  
> doesn't work properly.
> 
> 
> Thanks,
> Nick
> 
> 

Reply via email to