У пакета Apache Bean Utilities есть инструмент для этого.
org.apache.commons.beanutils.BeanUtils
.BeanUtils.copyProperties
public static void copyProperties (Object dest,
Объект ориг)
выдает 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