I have recently encountered a situation where I had to copy properties between two domain objects like DTO vs VO.
Even though BeanUtils was helpful in most cases via copyProperties, in a particular case, I needed it to ignore the properties with null values getting copied and overwriting the values in the target.
I came across this implementation of the said method and understood it fully in order to make the change I needed.
About Ashok: Started as Java but mutated myself with some frontend scripting skills and boom Javascript guy too. Still evolving in the vast NodeJS eco-system.
Backpacker with a bike
Trying hard to be a violinist
Reads Medium to know the buzz words and follows developer memes.