HomeAboutMeBlogGuest
© 2025 Sejin Cha. All rights reserved.
Built with Next.js, deployed on Vercel
🚀
Random Bit Flip
/
✈️
[2기 - 아만드] 9주차 RBF
✈️

[2기 - 아만드] 9주차 RBF

주차
SpringBoot Part5
회고일
May 20, 2022
참여자
멘토
Property
tag
한 주간 배우면서 새로 알게된 개념이나 잘 못 알았던 개념을 서로 나누어 보아요.
연관관계의 주인은 뭘하는 앤가요? 이해 안가는 부분이 있습니다
연관관계주인이 아닌쪽은 읽기만 할 수 있다
자식을 삭제하려면 부모에서 제거하면 된다(orphanRemoval)
멀 읽기만 할 수 있는건지 잘 모르겠슴니다
부모(주인아님)이 자식(주인)을 제거할 수 있다 vs 주인아님쪽은 읽기만 할 수 있다
→ 이 두가지가 모순같은데 이해가 잘 가지 않습니다
이전에 나름 정리해본 내용
User(주인아님)가 POST를
기본
CascadeType.PERSIST
orphanRemoval=true
both
조회
O
O
O
O
등록
X
O
X
O
삭제
X
X
O
O
결론 : 연관관계의 주인과 - Casecade, orphan은 관계가 없다 - 영한님 강의 中
라는 이야기를 듣고 두개를 분리해서 생각하니 편해졌습니다
 
컨트롤러에서 Transaction을 쓰는거는 안티패턴일까?
Transaction 하는곳을 정해버리는게 낫지 않을까? 안전성있지 않을까 싶다
 
 
 
Using Mockito with multiple calls to the same method with the same arguments
Is there a way to have a stubbed method return different objects on subsequent invocations? I'd like to do this to test nondeterminate responses from an ExecutorCompletionService. i.e. to test that
Using Mockito with multiple calls to the same method with the same arguments
https://stackoverflow.com/questions/8088179/using-mockito-with-multiple-calls-to-the-same-method-with-the-same-arguments
Using Mockito with multiple calls to the same method with the same arguments
Mockito How to mock and assert a thrown exception?
Thanks for contributing an answer to Stack Overflow! Please be sure to answer the question. Provide details and share your research! Asking for help, clarification, or responding to other answers. Making statements based on opinion; back them up with references or personal experience. To learn more, see our tips on writing great answers.
Mockito How to mock and assert a thrown exception?
https://stackoverflow.com/questions/16243580/mockito-how-to-mock-and-assert-a-thrown-exception
Mockito How to mock and assert a thrown exception?
JUnit 5 공식 가이드 문서 정리
JUnit 5 공식 가이드 문서 ※ 본 포스트는 JUnit 5 공식 가이드 문서를 개인적으로 정리한 문서입니다. JUnit 5.7.2 버전 기반으로 2021년 6월 21일에 작성되었습니다. JUnit 5 공식 가이드 문서의 "번역"이 아닌 "정리"입니다. 다음 내용들은 생략되어 있을 수 있습니다: JUnit 4 관련 내용 Java 이외의 언어(ex.
JUnit 5 공식 가이드 문서 정리
https://velog.io/@jaehoonlee/JUnit-5-%EA%B3%B5%EC%8B%9D-%EA%B0%80%EC%9D%B4%EB%93%9C-%EB%AC%B8%EC%84%9C-%EC%A0%95%EB%A6%AC
JUnit 5 공식 가이드 문서 정리