I\'ve @ManyToMany mapped classes in spring application I want to get all of the tasks that I\'ve assigned to a particular user by id.
@ManyToMany
Task class
Try from Task where To.Id IN (:userid)
from Task where To.Id IN (:userid)