Spring/study for project

Repository에 쓰이는 JPA의 findById vs getReferenceById

melitina 2023. 12. 29. 19:27

https://passionfruit200.tistory.com/386

 

[Spring Boot]JPA의 findById vs getReferenceById 의 차이점과 언제사용하는것이 맞는지에 대하여

글을 작성하게된 계기 member Entity를 생성하고 관련 테스트 코드를 작성하던 도중에, JPA를 상속받은 MemberRepository 에서 하나의 데이터를 조회할때 하나의 함수가 있는것이 아닌, findById 와 getReferenc

passionfruit200.tistory.com

 

'Spring > study for project' 카테고리의 다른 글

[mysql] 자료형  (2) 2024.01.04
LocalDateTime  (0) 2023.12.29
스프링 구조  (0) 2023.12.29
build.gradle에 lombok 설정  (1) 2023.12.29
Gradle 버전 관련 Lombok 추가 시 에러 이슈  (0) 2023.12.29