使用beanutils.copyproperties  进行复制时级联数据 可以复制么,我现在复制了的话级联数据就置为空了

解决方案 »

  1.   

    copyPropertiespublic static void copyProperties(Object dest,
                                      Object orig)
                               throws IllegalAccessException,
                                      InvocationTargetException
    Copy property values from the origin bean to the destination bean for all cases where the property names are the same.For more details see BeanUtilsBean.Parameters:
    dest - Destination bean whose properties are modified
    orig - Origin bean whose properties are retrieved
    Throws:
    IllegalAccessException - if the caller does not have access to the property accessor method
    IllegalArgumentException - if the dest or orig argument is null or if the dest property type is different from the source type and the relevant converter has not been registered.
    InvocationTargetException - if the property accessor method throws an exception
    See Also:
    BeanUtilsBean.copyProperties(java.lang.Object, java.lang.Object)