public EDAttendanceformsConfigVo getEDAttendanceformsConfig() { DomainFactory factory = getDomainFactory(); String hql = "select edAttFormConfig from EDAttendenceformsConfig as edAttFormConfig"; List<?> list = factory.find(hql); return EDAttendanceformsConfigVoAssembler.createEDAttendanceformsConfigVoCollectionFromEDAttendenceformsConfig(list).get(0); }
public ims.core.vo.EDAttendanceformsConfigVo getEDAttandanceformsConfigVo() { DomainFactory factory = getDomainFactory(); List<?> lstedattendace = factory.find("select e1_1 from EDAttendenceformsConfig as e1_1 where(e1_1.isRIE is null) order by e1_1.systemInformation.creationDateTime desc"); if(lstedattendace != null && lstedattendace.size() >0) { EDAttendanceformsConfigVoCollection tempColl = EDAttendanceformsConfigVoAssembler.createEDAttendanceformsConfigVoCollectionFromEDAttendenceformsConfig(lstedattendace); if( tempColl != null && tempColl.size() > 0) return tempColl.get(0); } return null; }
public ims.core.vo.EDAttendanceformsConfigVo saveEDAttandanceformsConfigVo(ims.core.vo.EDAttendanceformsConfigVo record) throws ims.domain.exceptions.StaleObjectException, ims.domain.exceptions.ForeignKeyViolationException { if (record == null) throw new CodingRuntimeException("Cannot save null EDAttendanceformsConfigVo"); DomainFactory factory = getDomainFactory(); EDAttendenceformsConfig doEDAttendenceformsConfig = EDAttendanceformsConfigVoAssembler.extractEDAttendenceformsConfig(factory, record); factory.save(doEDAttendenceformsConfig); return EDAttendanceformsConfigVoAssembler.create(doEDAttendenceformsConfig); }