[BeanUtils] Merging beans

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[BeanUtils] Merging beans

Cadariu, Mihai

I'm trying to merge properties of two beans. Namely, I want to copy only the
non-null properties from bean A into bean B.

I tried doing a describe(), filter out the null values, then populate() the
new bean, but the problem is I have indexed properties and they get messed

Any help appreciated.


The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it.

To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]