-
Notifications
You must be signed in to change notification settings - Fork 2
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
[FEAT] truncate extension #45
Conversation
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.
프린 고생많았어~
Long recentContentId = 1L; | ||
Long roomId = 1L; | ||
|
||
// when | ||
RoomContent actual = roomContentRepository.findTopByRoomIdOrderByCreatedAtDesc(recentContentId).get(); | ||
RoomContent actual = roomContentRepository.findTopByRoomIdOrderByCreatedAtDesc(roomId).get(); |
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.
오타 수정 감사합니다~~ ㅠ_ㅠ
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.
응애 새로운거 많이 봤어요.. 나중에 또 물어볼게~ 응애
em.createNativeQuery("SET REFERENTIAL_INTEGRITY TRUE").executeUpdate(); | ||
} | ||
|
||
@SuppressWarnings("unchecked") |
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.
질문) 이건 무슨 에노테이션인가요??
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.
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.
LGTM🔥
Issue Number
close #37
As-Is
To-Be
Check List
Test Screenshot
(Optional) Additional Description
코드와 함께 설명을 첨부합니다
@BeforeEach
전에 실행할 작업을 정의하는 extension 인터페이스. (재사용성 증가)TestContext
에서ApplicationContext
추출.ApplicationContext
bean 객체 추출.@Transactional
적용 불가. 따라서TransactionTemplate
을 사용하여 트랜잭션 제어.