-
Notifications
You must be signed in to change notification settings - Fork 0
refactor: initial feature_comments #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| @Column(name = "id") | ||
| private Long id; | ||
|
|
||
| @Column(nullable = false) |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Где-то есть @transactional, где-то нет
| "key": "rootEvent", | ||
| "value": "" | ||
| } | ||
| ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Мне кажется, или я не нашел тест кейса на попытку редактирования/удаления чужого комментария?
…-with-me into feature_comments
No description provided.