inflearn logo
강의

Course

Instructor

Real-world! Spring Boot and JPA Utilization 2 - API Development and Performance Optimization

Simple Order Lookup V1: Exposing Entities Directly

join fetch 까지 했는데 잘 안됩니다

236

junho1030109

6 asked

1

안녕하세요 선생님,

강의를 듣고 있는 중에 join fetch 가 안되서 여쭤봅니다

아래는 join fetch 가 실행되어야 할 부분인데 skip 하고 실행이 안되는 console  내용입니다.

2020-08-31 17:07:26.918  INFO 7360 --- [  restartedMain] p6spy                                    : #1598861246918 | took 0ms | statement | connection 12| url jdbc:mysql://localhost:3306/springboottest?serverTimezone=UTC&characterEncoding=UTF-8

update item set name=?, price=?, stock_quantity=?, author=?, isbn=? where item_id=?

update item set name='SPRING2 BOOK', price=40000, stock_quantity=296, author=NULL, isbn=NULL where item_id=10;

2020-08-31 17:07:26.918  INFO 7360 --- [  restartedMain] p6spy                                    : #1598861246918 | took 0ms | commit | connection 12| url jdbc:mysql://localhost:3306/springboottest?serverTimezone=UTC&characterEncoding=UTF-8

;

2020-08-31 17:07:27.114  INFO 7360 --- [  restartedMain] o.s.s.concurrent.ThreadPoolTaskExecutor  : Initializing ExecutorService 'applicationTaskExecutor'

2020-08-31 17:07:27.145  WARN 7360 --- [  restartedMain] aWebConfiguration$JpaWebMvcConfiguration : spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning

2020-08-31 17:07:27.344  INFO 7360 --- [  restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 8080 (http) with context path ''

설명하셨던 코드들 다 작성 잘 했는데 왜 join fetch 가 실행이 안되는지 모르겠습니다 

아래 제가 작성했던 코드를 깃허브로 첨부해드립니다

https://github.com/Kim8114/jpashops

선생님의 도움이 절실합니다 ㅠㅠㅠ

java JPA spring-boot spring

Answer 2

1

junho1030109

앗 해결됬습니다 감사합니다!

0

yh

안녕하세요. 준호님^^!

도움을 드리고 싶은데, 정확히 어떤 API를 어떻게 실행했는데, 안되는지 알려주시겠어요?

그리고 올려주신 로그를 보면 스프링 부트가 단순히 뜨기만 한 것이고 아직 URL 호출을 안하신 것 같아요. 해당 API를 호출하고, 그 결과 로그도 함께 남겨주세요^^!

강의 관련 외 질문입니다.

0

68

2

SpringBoot4 + Hibernate7 모듈 등록 방법 공유

0

92

1

BeanCreationException

0

91

3

Update 후 UpdateMemberResponse 매핑할 때

0

50

1

트랜잭션을 사용 안 할 때 커넥션은 언제 가져오나요?

0

101

2

페이징 + 검색조건 관련해서 질문드립니다.

0

70

1

Query Dsl Q파일 질문입니다.

0

84

1

루트 쿼리라는것은

0

60

1

메서드를 분리하는 기준

0

65

1

findAllWithMemberDelivery 메서드 질문드립니다.

0

111

3

연관관계 매핑을 안 쓸 경우, 사용해야 하는 전략

0

86

2

fetch join과 영속화와 OSIV의 관계

0

87

2

Distinct 사용 전 결과에 대한 의문

0

117

2

레포지토리 계층에서의 트랜잭션에 대한 의문

0

59

1

영속성 컨텍스트 생명주기의 신기한 부분이 있습니다.

0

78

2

dto 필드 속 엔티티 여부

0

60

1

뷰템플릿 사용 시

0

77

2

Result 클래스 관련 질문

0

56

1

@PostConstruct 프록시 관련 질문드립니다

0

86

1

DTO 대신 Form 사용은 안되나요?

0

138

1

OSIV ON 상태일 때

0

96

1

fetch join VS fetch join 페이징 궁금증

0

187

2

양방향 연관관계 알아보는 법?

0

107

1

16강 17강 간단 정리 이게 맞을까요 ?

0

166

2