commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From miro <>
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)
  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:
Sent from the Commons - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message