From: Mike L. <mi...@if...> - 2008-09-15 15:21:06
|
Hello, I'm trying to write a DeepCloner to clone a large complex entity tree using reflection. It works fine with a freshly created entity, but once I run it through hibernate then it comes back with all sorts of runtime-enhancement and my cloner fails because it can't clone some of the hibernate properties (some can't be instantiated). So my question is how can I tell if an object has been enhanced by hibernate in a generic / general way? I need some way that is usable on any object so that I can try to only clone the properties from the super class of that runtime-enhancement version (i.e. my original entity class). Any tips or ideas? Thanks. - Leo |