commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From miro <miroconn...@yahoo.com>
Subject beanutils copy to ignore null properties
Date Mon, 13 Oct 2008 18:25:38 GMT

I have Bean Test
with properties   A and B

An instance of  Test  TestA has value for A   and B is null.
another intance of Test  TestB  has value for B and A is null .
now  when I call copyProperties BeanUtils.copyProperties(TestA, TestB)
TestA 
  property A will get null 
and Propetrty B will be B

instead I want beanUtils to update TestA      just by copying non null
properties is it possible ?

 
-- 
View this message in context: http://www.nabble.com/beanutils-copy---to-ignore-null-properties-tp19960177p19960177.html
Sent from the Commons - User mailing list archive at Nabble.com.


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


Mime
View raw message