Skip to content

Conversation

@flykeeperB
Copy link
Owner

No description provided.

@Column(name = "id")
private Long id;

@Column(nullable = false)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Опционально) для таких полей с датами есть удобная функция у hibernate с аудит полями - даты будут автоматически проставляться при нужных аннотациях

return commentMapper.mapToCommentDto(comments);
}

@Transactional

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Эта аннотация не может работать на приватных методах в силу того, как она функционирует

return commentMapper.mapToCommentDto(comments);
}

@Override

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Где-то есть @transactional, где-то нет

"key": "rootEvent",
"value": ""
}
]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Мне кажется, или я не нашел тест кейса на попытку редактирования/удаления чужого комментария?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants