public class Document extends Model {
...
@ManyToMany
public Set<User> accessors;
...
}
I want to select all Documents which accessors contain a certain user. I have just minimal experiences with SQL and no experiences with JPQL. So how to do that?
thanks in advance