How to use projections and specifications with spring data jpa?

前端 未结 6 527
执念已碎
执念已碎 2020-12-13 14:53

I\'m not able to use Spring Data JPA projections and specifications together. I have the following setup:

Entity:

@Entity
public cla         


        
6条回答
  •  囚心锁ツ
    2020-12-13 15:36

    If you use Specification, you can't use in CountryRepository.

    CountryRepository cRepository;
    
    cRepository.findAll(Specification specification);
    

提交回复
热议问题