Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- Exception
- Android
- 그리디
- 인프런
- Spring Boot
- 스프링 핵심 원리
- 백준
- AOP
- JDBC
- 스프링
- Thymeleaf
- 자바
- Greedy
- transaction
- pointcut
- spring
- 김영한
- java
- Servlet
- jpa
- springdatajpa
- Proxy
- 알고리즘
- QueryDSL
- kotlin
- db
- 스프링 핵심 기능
- http
- SpringBoot
- JPQL
Archives
- Today
- Total
목록프록시 특징 (1)
개발자되기 프로젝트
프록시
1. Member를 조회할 때 Team도 함께 조회해아 하나..?? 2. 프록시 기초 JPA는 em.find()외에도 em.getReference()를 제공 em.find() vs em.getReference() en.find() : 데이터베이스를 통해서 실제 엔티티 객체 조회 em.getReference(): 데이터베이스 조회를 미루는 가짜(프록시) 엔티티 객체 조회. DB에 쿼리가 안나가는데 객체가 조회가 됨! Proxy는 진짜 객체와 껍데이는 똑같은데, 안이 텅 비었음. 내부에 target이 있는데 진짜 레퍼런스를 가르킴. em.getReference() 하는 시점에 select SQL 안나감. Member findMember = em.getReference(Member.class, member.g..
인프런/[인프런] 자바ORM 표준 JPA 프로그래밍
2021. 8. 12. 00:21