Apapche beanutils doesn't give an option to ignore a property while copying.
However, you can use the overloaded method that can copy a single property and repeat for all the properties that you want to copy -
public static void copyProperty(Object bean,
String name,
Object value)
throws IllegalAccessException,
InvocationTargetException
This copies the specified property value to the specified destination bean, performing any type conversion that is required.
If you use spring's BeanUtil, it has an option to ignore properties -
copyProperties(Object source, Object target, String... ignoreProperties)
Copy the property values of the given source bean into the given target bean, ignoring the given "ignoreProperties".
org.apache.commons.beanutils.BeanUtilsand notBeanUtilsfrom Spring. So the suggested solution will not work. If you marked this as close, please revert because your solution is not sutable.