class NoteMapper implements DataMapper<Note, NoteDto> {

  @Override
  public NoteDto mapEntityToDto(Note note) {
    NoteDto noteDto = new NoteDto();

    noteDto.setNoteBody(note.getText());
    noteDto.setNoteId(note.getId());
    noteDto.setUserId(note.getUserId());
    noteDto.setDate(note.getDate());
    noteDto.setParentKeyResultId(note.getParentKeyResult().getId());

    logger.info("Mapped Note (id:" + note.getId() + ") successful to NoteDto.");
    return noteDto;
  }

}