예제 #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 NoteVO create(NoteVO o) {
   Note noteEntity = dao.save(mapper.convertToNote(o));
   return mapper.convertToNoteVO(noteEntity);
 }