public ims.core.vo.PatientCaseNoteCommentSaveVo buildVo(ims.vo.ValueObjectBeanMap map) { ims.core.vo.PatientCaseNoteCommentSaveVo vo = null; if (map != null) vo = (ims.core.vo.PatientCaseNoteCommentSaveVo) map.getValueObject(this); if (vo == null) { vo = new ims.core.vo.PatientCaseNoteCommentSaveVo(); map.addValueObject(this, vo); vo.populate(map, this); } return vo; }
public void populate(ims.vo.ValueObjectBeanMap map, ims.core.vo.PatientCaseNoteCommentSaveVo vo) { this.id = vo.getBoId(); this.version = vo.getBoVersion(); this.patient = vo.getPatient() == null ? null : new ims.vo.RefVoBean(vo.getPatient().getBoId(), vo.getPatient().getBoVersion()); this.casenote = vo.getCaseNote() == null ? null : new ims.vo.RefVoBean(vo.getCaseNote().getBoId(), vo.getCaseNote().getBoVersion()); this.authoredby = vo.getAuthoredBy() == null ? null : new ims.vo.RefVoBean(vo.getAuthoredBy().getBoId(), vo.getAuthoredBy().getBoVersion()); this.authoreddate = vo.getAuthoredDate() == null ? null : (ims.framework.utils.beans.DateTimeBean) vo.getAuthoredDate().getBean(); this.comment = vo.getComment(); this.casenotefolderlocation = vo.getCaseNoteFolderLocation() == null ? null : new ims.vo.RefVoBean( vo.getCaseNoteFolderLocation().getBoId(), vo.getCaseNoteFolderLocation().getBoVersion()); this.notetype = vo.getNoteType() == null ? null : (ims.vo.LookupInstanceBean) vo.getNoteType().getBean(); }