if you need to populate a bean from some other having the same properties (more or less), you surely can find something here:
http://commons.apache.org/proper/commons-beanutils/
specifically
http://commons.apache.org/proper/commons-beanutils/javadocs/v1.9.1/apidocs/org/apache/commons/beanutils/beanutils.html
i guess beanutils.copyproperties(object orig, object dest) will do what you need without the burden to copy all your fields.
beanutils.copyproperties(object orig, object dest)
if you need to populate a bean from some other having the same properties (more or less), you surely can find something here:
http://commons.apache.org/proper/commons-beanutils/
specifically
http://commons.apache.org/proper/commons-beanutils/javadocs/v1.9.1/apidocs/org/apache/commons/beanutils/beanutils.html
i guess
beanutils.copyproperties(object orig, object dest)
will do what you need without the burden to copy all your fields.