I have few Pojos in different packages, each POJO contains set of the another pojo from the same package. I need to copy all items with the same name from Package B Pojos to
If you already have spring dependencies you could use org.springframework.beans.BeanUtils
org.springframework.beans.BeanUtils
BeanUtils.copyProperties(from, to);