The following query works fine:
@Modifying @Query(value = "UPDATE my_table SET my_field = true WHERE CTID IN " + "( SEL