I do the copying like this:
HibernateBeanReplicator r = new Hibernate3BeanReplicator(createSet
(VsbBeanLibDataB.class, VsbBeanLibDataC.class, VsbBeanLibDataD.class,
VsbBeanLibDataF.class), null, null);
VsbBeanLibDataA toBean = r.copy(fromBean, VsbBeanLibDataA.class);
And you are correct, if A contains a list of B's and I do not specify
B to be copied it gets copied, but if B contains C's the C's do not
get copied unless C is also specified.
Thanks.
On Jun 17, 1:32 am, Hanson Char <
hanson.c...@gmail.com> wrote:
> If you use the convenient Hibernate3BeanReplicator, the top level objects of
> a list is always copied as long as the collection property is somehow
> specified. The entityClassSet only affects the object graph within the root
> objects in the collection.
>
> HTH
>