noteForm.setTitle(noteVO.getTitle());
noteForm.setDetail(noteVO.getDetail());
noteForm.setCreatedid(String.valueOf(noteVO.getCreatedBy()));
noteForm.setCreatedby(noteVO.getCreatedByVO().getFirstName() + " " + noteVO.getCreatedByVO().getLastName());
DateFormat df = new SimpleDateFormat("MMM-dd-yyyy hh:mm:ss a");
Timestamp createdTimestamp = noteVO.getCreatedOn();
String createdDateString = "";
if (createdTimestamp != null) {
Date valueDate = new Date(createdTimestamp.getTime());
createdDateString = df.format(valueDate);
}
noteForm.setCreateddate(createdDateString);
Timestamp modifiedTimestamp = noteVO.getModifiedOn();
String modyfiedDateString = "";
if (modifiedTimestamp != null) {
Date valueDate = new Date(modifiedTimestamp.getTime());
modyfiedDateString = df.format(valueDate);
}
noteForm.setModifieddate(modyfiedDateString);
if (noteVO.getRelateEntity() > 0) {
noteForm.setEntityid(String.valueOf(noteVO.getRelateEntity()));