Reputation: 71
I'm using spring 4.1 version in my project. I have a bean with data which i want to copy to another bean with some fields ignored. I tried to copy like this...
BeanUtils.copyProperties(product, ecmProduct, String productName);
Here productName is the field which i want to ignore while copying. But by giving Ctrl+Space i'm getting suggestion as BeanUtils.copyProperties(Object, Object)
. ie, i'm unable to pass the field which is to be ignored, which results in error.
Can anyone please help me to solve this issue. Many thanks in advance...
Upvotes: 1
Views: 13326