250x250
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 |
| 29 | 30 | 31 |
Tags
- python list method
- 딕셔너리
- getreference
- 심볼릭 레퍼런스
- 2026 AWS SAA-C03
- 코딩테스트
- 파이썬 문자열 메서드
- 클래스 로더 계층
- aws saa-c03
- AWS SAA-C03 합격후기
- 스프링
- 플랫폼 클래스 로더
- BFS
- 스프링 컨테이너
- dfs
- 알고리즘
- 어플리케이션 클래스 로더
- 파이썬
- 백준
- 다이렉트 레퍼런스
- 부트스트랩 클래스 로더
- 객체지향
- 파이썬 리스트 메서드
- 자료구조
- java
- Spring
- 컴포넌트 스캔
- python
- 자바
- stop the world
Archives
- Today
- Total
목록getreference (1)
클라우드 낚시꾼
1. find()와 getReference() 소개em.find(): 데이터베이스에서 엔티티 데이터를 즉시 로드한다. (즉시 로딩)em.getReference(): 프록시 인스턴스를 제공하고 실제 엔티티 데이터의 로딩을 필요할 때까지 지연시킨다. (지연 로딩)예제 코드@Entitypublic class Member { @Id private Long id; private String name; // getters and setters}EntityManager em = entityManagerFactory.createEntityManager();// find() -> 즉시 로딩Member member1 = em.find(Member.class, 1L);// getReference() -..
BE Framework/JPA
2024. 5. 7. 16:29