Hi,
I'm looking for a way to make a deep copy of an object graph, including child collections. The result should be a graph of new (transient) objects, ready to be persisted.
I've looked through the forums and ran across several people trying to do the same thing, and the answer that comes back is always to write your own algorithm on top of the metadata API. What I'm wondering is: Has someone already done this who is willing to share the code? Seems like this is such a common need that I'd hate to reinvent the wheel if someone has a decent implementation.
Thanks!
|