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