I have two classes with the same attributes and the same get and set methods, one follows the DTO pattern and a VO pattern.
So I have something like this:
classDTO
private String x;
private String y;
classVO
private String x;
private String y;
Why is the following code throwing the exception illegalArgumentException
?
BeanUtils.copyProperties(classVO, classDTO);