Пример #1
0
 @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;
 }
Пример #2
0
 @Override
 public List<NoteVO> getListByInterview(long interviewId) {
   List<Note> list = dao.getListByInterview(interviewId);
   return mapper.convertToNoteVOList(list);
 }
Пример #3
0
 @Override
 public void delete(NoteVO o) {
   dao.delete(mapper.convertToNote(o));
 }
Пример #4
0
 @Override
 public void update(NoteVO o) {
   dao.saveOrUpdate(mapper.convertToNote(o));
 }
Пример #5
0
 @Override
 public NoteVO create(NoteVO o) {
   Note noteEntity = dao.save(mapper.convertToNote(o));
   return mapper.convertToNoteVO(noteEntity);
 }
Пример #6
0
 @Override
 public List<NoteVO> listAll() {
   return mapper.convertToNoteVOList(dao.getAllActive());
 }