30 Ağustos 2021 Pazartesi

SpringData JPA @QueryHints Anotasyonu

Giriş
Şu satırı dahil ederiz
import org.springframework.data.jpa.repository.QueryHints;
1. Bu anotasyon ile Hibernate Query Cache tanımlanabilir.

2. Bu anotasyon ile Lock yöntemi tanımlanabilir. 
Açıklaması şöyle
When using Spring Data, we can use the @Lock annotation in Spring repository methods to specify the desired lock mode. The lock timeout value can be defined by setting the javax.persistence.lock.timeout hint in a @QueryHints annotation applied to a Spring repository method.


Hiç yorum yok:

Yorum Gönder