Date Typeconversion in BSSV
Hi,
I am developing a custom Provider BSSV as wrapper BSSV for a BSFN which needs multiple parameters along with Date parameter to passed from external system.
When I pass Date parameter from Published VO class to Internal VO class , I am facing Type conversion issues in BSSV. I have used below code in Published VO.
public void setDateUpdated(Date dateUpdated) {
if(dateUpdated != null){
Calendar tmpDate = Calendar.getInstance();
tmpDate.setTime(dateUpdated);
this.dateUpdated = tmpDate
}
and below code in Internal VO.
public void setJdDateUpdated_UPMJ(Calendar jdDateUpdated_UPMJ) {
if (jdDateUpdated_UPMJ != null) {
this.jdDateUpdated_UPMJ = jdDateUpdated_UPMJ.getTime();
}
}
I have imported java.util.Date & java.util.Calendar pacakages in both the classes. In my test class, when I pass any type of Date parameter it throws build error. Is there any code apart from above to be included for Date typeconversion in BSSV? Please suggest.