@Query(“select * from bucket_name where lastName = $1”)
List getByName(String lastName);
This is working fine and getting the results
where as:
what if i want two records as outputs by passing two lastnames to a method like below
@Query(“select * from bucket_name where lastName IN [$1 , $2]”)
List getByName(String lastName, String lastName)
this is not working can any one suggest me on this please
And i want to see how the query will be if i pass a list of lastNames like below
@Query("select * from bucket_name where lastName = $1 ")
List getByName(List lastNames)
this is not working can any one suggest me on this please