1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
public 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) |
Partager