Update CourseService.java
From beanutils.java, The method copyProperties(Object dest, Object orig) is improperly used in this example.
This commit is contained in:
parent
c5fbfa2329
commit
3170e3c96e
|
@ -29,6 +29,6 @@ public class CourseService {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void copyProperties(Course course, CourseEntity courseEntity) throws IllegalAccessException, InvocationTargetException {
|
public static void copyProperties(Course course, CourseEntity courseEntity) throws IllegalAccessException, InvocationTargetException {
|
||||||
BeanUtils.copyProperties(course, courseEntity);
|
BeanUtils.copyProperties(courseEntity, course);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue