IN clause with Spring Data and Cassandra @Query

前端 未结 3 1713
执笔经年
执笔经年 2020-12-31 14:08

I\'m trying to query a Cassandra table using the IN clause and the @Query annotation from Spring Data. I have a table with a partition key of last_name and a clustering key

3条回答
  •  醉酒成梦
    2020-12-31 14:19

    Nitish Bhagat is right, with the current version spring-data-cassandra:2.0.6.RELEASE it does NOT work with the braces.

    For me, it works ONLY without the braces like: @Query("SELECT * FROM people WHERE first_name IN ?0") public List findByFirstName(List firstName);

提交回复
热议问题