public ims.vo.ValueObjectBean getBean(ims.vo.ValueObjectBeanMap map) { ims.core.vo.beans.BayTimesAdmissionBreachedVoBean bean = null; if (map != null) bean = (ims.core.vo.beans.BayTimesAdmissionBreachedVoBean) map.getValueObjectBean(this); if (bean == null) { bean = new ims.core.vo.beans.BayTimesAdmissionBreachedVoBean(); map.addValueObjectBean(this, bean); bean.populate(map, this); } return bean; }
public void populate( ims.vo.ValueObjectBeanMap map, ims.core.vo.beans.BayTimesAdmissionBreachedVoBean bean) { this.id = bean.getId(); this.version = bean.getVersion(); this.ward = bean.getWard() == null ? null : new ims.core.resource.place.vo.LocationRefVo( new Integer(bean.getWard().getId()), bean.getWard().getVersion()); this.bay = bean.getBay() == null ? null : new ims.core.resource.place.vo.LocationRefVo( new Integer(bean.getBay().getId()), bean.getBay().getVersion()); this.memberofstaff = bean.getMemberOfStaff() == null ? null : bean.getMemberOfStaff().buildVo(map); this.admissiondatetime = bean.getAdmissionDateTime() == null ? null : bean.getAdmissionDateTime().buildDateTime(); this.reasonforadmissionoutofopeninghours = bean.getReasonForAdmissionOutOfOpeningHours() == null ? null : ims.core.vo.lookups.ReasonForAdmissionOutOfOpeningHours.buildLookup( bean.getReasonForAdmissionOutOfOpeningHours()); this.reasonforadmissionoutofopeninghourscomment = bean.getReasonForAdmissionOutOfOpeningHoursComment(); }