본문 바로가기
🍃SpringFrameworks/SpringDataElasticsearch

[SpringDataElasticsearch] Spring Data Repository의 기본과 Elasticsearch 세부 사항

by inbeom 2023. 12. 16.
728x90

Data Repositories

Spring Data Repository의 기본과 Elasticsearch 세부 사항 설명.

 

1. 핵심 개념 (feat. Entity 상태 감지 전략)

 

2. Repository Interface 정의

  • Fine-tuning 저장소 정의
  • Spring Data Module 사용

 

3. Elasticsearch Repositories

 

4. Reactive Elasticsearch Repository (반응형)

  • 사용
  • 구성

 

5. Repository Instances 생성 (Instance & Bean)

  • Java 구성
  • XML 구성
  • Filter 사용

 

6. Query Method 정의

 

7. Query Methods 

  • 쿼리 조회
  • 쿼리 생성
  • Method 반환 타입
  • @Query 어노테이션

 

8. Projections. (투영)

  • Interface base Projection
  • Class base Projection (DTO)
  • Dynamic Projection

 

9. Custom Repository 구현

  • Individual(개별) 저장소 정의
  • Base(기본) 저장소 정의

 

10. Aggregate(집계) Root 이벤트

 

11. Repository Mothod의 Null 처리

  • Null 허용 여부 어노테이션
  • Kotlin 기반 저장소 Null 허용 여부

 

12. CDI (Contexts and Dependency Injection) 통합

 

13. Repositoy Query 키워드

  • Query Method 제목 키워드
  • Query Method 조건자 키워드 및 수정자

 

14. Repository Query  반환 타입

 

 

 

- 끝 -

 

 

reference.

https://docs.spring.io/spring-data/elasticsearch/reference/repositories.html

728x90