commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Billy Newman <newman...@gmail.com>
Subject [beanutils] trying to convert generic collection
Date Mon, 21 Feb 2011 17:30:11 GMT
Hello,

I am trying to convert a bean that has a collection of objects to a bean
that has a collection of different objects:

I.E.

Company1 class contains
Set<MyEmployee> ...

Company2 class contains
Set<AnotherEmployee> ...


I would like to be able to call
BeanUtil.copyProperties(company1, company2);

I thought I would just need to write and register a converter class that
know how to convert MyEmployee to AnotherEmployee.

Anyone had success with this before?

Thanks

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message