→ 이번 포스팅에서는 MemberTeam 두개의 엔티티를 구현하고 연관관계를 맺어줄 것입니다.

그리고 해당 관계가 정상적으로 맺어졌는지 테스트까지 진행해 볼 것입니다.

엔티티 클래스

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/af062c2d-401e-41b7-a9b0-666ef54bc654/_2020-07-13__8.10.55.png

ERD

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/172d24ef-65db-4e66-b5aa-5fd4a2dbbd9c/_2020-07-13__8.11.07.png

회원(Member) 엔티티

팀(Team) 엔티티

데이터 확인 테스트