You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Gao Di <ja...@yahoo.com.cn> on 2005/11/16 17:15:36 UTC

[Beanutils]How to copy beans with different property type

I have 2 javabeans, they have same property name, but
the property type are different, such as:
String starttime;
another is TimeStamp startime
so i want to know if i can use Beanutils to do the
copy thing?
I have tried PropertyUtils.copyProperties method, but
i got argument type mismatch error, anyone tell me how
to do, thanks.


		
___________________________________________________________ 
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Re: [Beanutils]How to copy beans with different property type

Posted by David Durham <da...@gmail.com>.
> I have tried PropertyUtils.copyProperties method, but
> i got argument type mismatch error, anyone tell me how
> to do, thanks.

http://jakarta.apache.org/commons/beanutils/commons-beanutils-1.7.0/docs/api/org/apache/commons/beanutils/package-summary.html#conversion

HTH,

Dave

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org