I'm using jakarta Beanutils(1.6) for copying values from one to another bean.
As the beanutils use reflections for copying the stuff every getter/setter(origin, destination) pair is called if existing.
An example to make i clearer:
Origin bean:
getStuff()
getDate()
getName()
Destination bean:
setStuff(xx)
setDate(xx)
setName(xx)
Beanutils calls getStuff and sets it on the destination bean via setStuff(xx) while invoking BeanUtils.copyProperties(j
ava.lang.O
bject dest, java.lang.Object orig)
How do i configure beanutils to exclude some getters to get called, so that in the example above only setDate get's called??
Start Free Trial