Spring Data MongoDB - Criteria API OrOperator is not working properly

前端 未结 2 1099
南笙
南笙 2021-02-05 08:21

I\'m facing Spring Data MongoDB Criteria API orOperator problem.

Here\'s query result for irregular verbs: (Terminal output)



        
2条回答
  •  花落未央
    2021-02-05 08:49

    As far as I remember in order to use orOperator you should do:

    Query query = new Query(new Criteria().orOperator(criteriaV1,criteriaV2));

提交回复
热议问题