Commit 42e8e950 authored by pborate's avatar pborate

Updated ecmOrderDao.java and UserActivityDao.java

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@175961 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 36bed009
...@@ -618,10 +618,19 @@ public class UserActivityDAO { ...@@ -618,10 +618,19 @@ public class UserActivityDAO {
userProfile = userList.get(0); userProfile = userList.get(0);
Date birthDate = userProfile.getBirthDate(); Date birthDate = userProfile.getBirthDate();
String birthDateStr = HibernateUtil.getValidDB2APPLDate(birthDate.toString());
System.out.println("B4 birthDate[" + birthDate + "]"); System.out.println("B4 birthDate[" + birthDate + "]");
if(birthDate==null)
{
String birthDateDefault = "No birth date available";
birthDate = HibernateUtil.getDateObject(birthDateDefault, HibernateUtil.APPL_DATE_FORMAT);
System.out.println("After birthDate[" + birthDateDefault + "] birth date ["+birthDate+"]");
}
else{
String birthDateStr = HibernateUtil.getValidDB2APPLDate(birthDate.toString());
birthDate = HibernateUtil.getDateObject(birthDateStr, HibernateUtil.APPL_DATE_FORMAT); birthDate = HibernateUtil.getDateObject(birthDateStr, HibernateUtil.APPL_DATE_FORMAT);
System.out.println("After birthDate[" + birthDate + "]"); System.out.println("After birthDate[" + birthDateStr + "] birthDate ["+birthDate+"]");
}
userProfile.setBirthDate(birthDate); userProfile.setBirthDate(birthDate);
String uName = userProfile.getUserName(); String uName = userProfile.getUserName();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment