예제 #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());
 }