About BeanUtils class In Spring Framework

public ProductAggregate(CreateProductCommand createProductCommand) {

ProductCreatedEvent productCreatedEvent = new ProductCreatedEvent();
BeanUtils.copyProperties(createProductCommand,productCreatedEvent);

}
// CreateProductCommand object value copy in ProductCreatedEvent
Copy the property values of the given source bean into the target bean.

--

--

--

Java||Spring-Boot|| Micro services Application developer|| INDIA

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

K8S Multi Node Cluster Configuration over AWS Cloud using Ansible

Understanding S.O.L.I.D Principles

Tutorial: How To Deploy Prometheus and Node Exporter as Containers on a Remote server (with $5)

Meet our tech Megazonians

How to import cad file into XPSWMM

Are you a happy developer?

Let’s Build: With Ruby on Rails — Trade App With In-App Messaging

How to compile OpenCV with SIFT and SURF support, and do feature extraction in Java

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Sanjay Singh

Sanjay Singh

Java||Spring-Boot|| Micro services Application developer|| INDIA

More from Medium

Java virtual machine(JVM) Architecture (JVM Main Components)

Chain Of Responsibility Design Pattern

Memento Design Pattern