this sorusunun farkındayım, ancak org.springframework.data:spring-data-jpa:1.7.0.RELEASE
kullanarak hala aynı sorunu yaşıyorum (Either use @Param on all parameters except Pageable and Sort typed once, or none at all!
). Benim sınıftır:Bir bahar verisinde Pageable ve @Param JpaRepository yöntemi sorunu [2]
public interface BalanceHistoryRepository extends JpaRepository<BalanceHistory, Long> {
@Query("select bh from BalanceHistory bh where bh.account.id = :idAccount")
public BalanceHistory findCurrentBalanceByAccountNumber(PageRequest pageCriteira, @Param("idAccount") long idAccount);
}
Düzenleme
Çağrı:
Pageable page = new PageRequest(0, 1, Sort.Direction.DESC, "date");
BalanceHistory bh = balanceHistoryRepository.findCurrentBalanceByAccountNumber(1,page);
Yöntem:
@Query("select bh from BalanceHistory bh where bh.account.id = :idAccount")
public BalanceHistory findCurrentBalanceByAccountNumber(@Param("idAccount") long idAccount, Pageable pageCriteira);
böcek yay veri Commons içindedir. –
Bu java.lang çocuklar chill out .... – muttonUp