//logic to convert jbo date to util date
oracle.jbo.domain.Date oracleDate = empRow.getHireDate();
java.sql.Date javaSqlDate = oracleDate.dateValue();
long javaMilliSeconds = javaSqlDate.getTime();
java.util.Date javaUtilDate = new java.util.Date(javaMilliSeconds);
empDTO.setHire_date(javaUtilDate);
oracle.jbo.domain.Date oracleDate = empRow.getHireDate();
java.sql.Date javaSqlDate = oracleDate.dateValue();
long javaMilliSeconds = javaSqlDate.getTime();
java.util.Date javaUtilDate = new java.util.Date(javaMilliSeconds);
empDTO.setHire_date(javaUtilDate);
No comments:
Post a Comment