Skip to content

Latest commit

 

History

History
46 lines (28 loc) · 1.66 KB

CHANGELOG.adoc

File metadata and controls

46 lines (28 loc) · 1.66 KB

Spring Data Requery Change Logs

Spring Data for Requery

0.4.0

  • @Query annotation 을 이용한 Native SQL 구문 실행 가능

    • @Query("select * from Users u where u.name = ?)
      List<User> findByName(String name)

  • Query By Example 지원

  • 단순 속성을 이용한 질의 지원

    • findByName(String name)

    • findByNameLike(String nameToMatch)

    • findByNameAndEmail(String name, Strig email)

      [[Note]] 단 Association 에 대한 자동 질의 생성은 지원하지 않습니다.
      이는 requery의 association 설정에서 join type을 지원하지 않기 때문이고, 굳이 필요가 없습니다.
      Java 8 default method 를 통해 `QueryDSL`처럼 유연한 join 구문을 지정할 수 있습니다.
  • Java 8 default method in Repository

    • Repository interface 에 직접 구현한 default method를 실행시킬 수 있어서, Custom Repository를 따로 만들 필요가 없습니다.

  • @Transactional 지원

    • Spring framework에서 지원하는 `PlatformTransactManager`과 `@Transactional`을 이용한 Transaction 관리 가능

  • Async query results

    • Spring 에서 지원하는 @Async 를 이용한 질의를 수행할 수 있습니다.

    • 참고 : Async query results

  • Coroutine query results

    • Kotlin Coroutines 를 이용한 비동기 작업을 수행할 수 있습니다.

    • Coroutine Context를 하나의 Thread 하에서만 사용한다면, Spring TransactionManger와 같이 활용할 수 있습니다.