tianshuainan opened a new issue, #22194:
URL: https://github.com/apache/shardingsphere/issues/22194

   
   I  queryed encrypted field(such as :email) with Assisted query column and I 
used the method provided by JPA (findByEmail ()) to find the correct results. 
But using the following Predicate method fails. How to  solve this?I  will 
appreciate it very much and look forward to your reply.
   ` public ResponseEntity<?> getPaginatedRequestsByDsl(int page, int size, 
Predicate predicate) {
   
           Pageable paging = PageRequest.of(page, size, 
Sort.by(Sort.Direction.DESC, "createTime"));
           final Page<DsrRequest> pagedResult = 
dsrRequestRepositoryDao.findAll(predicate, paging);
   
           final DsrRequestInPaginatedResponse dsrRequestInPaginatedResponse = 
new DsrRequestInPaginatedResponse();
           if (pagedResult.hasContent()) {
               List<DsrRequestDto> listOfDsrRequests = pagedResult.stream()
                       
.map(DsrRequestMapper.INSTANCE::entityToDto).collect(Collectors.toList());
   
               dsrRequestInPaginatedResponse.setRequests(listOfDsrRequests);
           } else {
               
dsrRequestInPaginatedResponse.setRequests(Collections.emptyList());
           }`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: 
[email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to