Hi,
I have two
overloaded setter methods in DTO: one with Long Wrapper parameter and another
with long primitive. This has been working fine for several
months. But it stopped working recently and complaining that "The error happened while setting a property on the result
object". I know what is happening here .
Now IBatis is started using setter method with primitive long
parameter. Earlier It used use Long Wrapper setter method. What is
the reason for this behavior?
Setter methods in
DTO
/**
* @param
parentAnalysisId The parentAnalysisId to set.
*/
public void setParentAnalysisId(Long parentAnalysisId) {
this.parentAnalysisId = parentAnalysisId;
}
/**
* @param
parentAnalysisId The parentAnalysisId to set.
*/
public void setParentAnalysisId(long parentAnalysisId) {
this.parentAnalysisId = new Long(parentAnalysisId);
}
Thanks,
Vijay
