@Override public List<NoteVO> findById(Long id) { Note note = dao.get(id); NoteVO noteVO = mapper.convertToNoteVO(note); List<NoteVO> list = new ArrayList<NoteVO>(); list.add(noteVO); return list; }
@Override public List<NoteVO> getListByInterview(long interviewId) { List<Note> list = dao.getListByInterview(interviewId); return mapper.convertToNoteVOList(list); }
@Override public void delete(NoteVO o) { dao.delete(mapper.convertToNote(o)); }
@Override public void update(NoteVO o) { dao.saveOrUpdate(mapper.convertToNote(o)); }
@Override public NoteVO create(NoteVO o) { Note noteEntity = dao.save(mapper.convertToNote(o)); return mapper.convertToNoteVO(noteEntity); }
@Override public List<NoteVO> listAll() { return mapper.convertToNoteVOList(dao.getAllActive()); }