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

Test suite for unit testing GORM in Go

Connect Your Alexa Skills, and Google Home Actions with Salesforce CRM

Sprimera: A Spring Profile Merger

Sending Emails with Go Using a Custom Template

Things you should avoid when you use Ruby on Rails

NoSQL (Not Only SQL)

Introducing 1997.chat: Instant Messaging, the way it used to be

Introducing Renew Connect

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

Database Rider: How to improve your DB tests

Object-relational Mapping Using JPA Hibernate and Spring Data JPA. Persistence with Spring Data JPA

Circuit Breaker Pattern With Netflix-Hystrix: Java

How to better use multiple Spring boot profiles in testing