Does anyone know how I can use some clause similar to WHERE IN
in spring jpa
?
example:
@Modifying
@Transactional
@Query(value = "Delete from table where id in(:ids)",nativeQuery=true)
void deleteByIdid(@Param("ids") String var);
I've tried to send a String
like this:
5151,5151,51515,884,8484.
But it does not work.
Message
couldn't execute statement.
I believe that when passing the parameter the spring
places the variável
in quotes.