How do I request a new enhance in BeanUtils? I really could implement such feature. Thanks.
2010/12/15 Julien Aymé <julien.a...@gmail.com> > Hi, > you could see the issue BEANUTILS-304 : > https://issues.apache.org/jira/browse/BEANUTILS-304 > > Or you could enhance BeanUtils class by duplicating copyProperties > method into a new copyNonNullProperties method > (which would copy all non-null properties from src into dest). > > Then the merge algorithm would be something like this: > Bean mergeInto = new Bean(); > BeanUtils.copyProperties(defaultValuesBean, mergeInto); > BeanUtils.copyNonNullProperties(srcBean, mergeInto); > > This way, the new mergeInto bean will have all the non null properties > of the src bean and the other properties of the defaultValuesBean. > > HTH, > Regards, > > Julien > > 2010/12/14 Mateus Brum <mateushenriqueb...@gmail.com>: > > Is there some implementation of bean merge in BeanUtils? > > If not how do I propose such implementation? > > Thanks. > > > > -- > > *Mateus Henrique Brum* > > *Desenvolvedor de Softwares Corporativos* > > *NOVO CELULAR : (12) 8200-0919* > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org > For additional commands, e-mail: dev-h...@commons.apache.org > > -- *Mateus Henrique Brum* *Desenvolvedor de Softwares Corporativos* *NOVO CELULAR : (12) 8200-0919*