BeanUtils class provides a copyProperties method that copies the properties of source object to target object where the property name is same in both objects . Now we will copy the properties of Course object to CourseEntity object: Course course = new Course(); course.