I need assistance with a tricky hibernate query problem. I have the following entities:
public class Book { private String bookId; private String autho
You could use the following query:
select book from Book book where :numberOfTags = (select count(tag.id) from Book book2 inner join book2.tags tag where book2.id = book.id and tag in (:tags))
where numberOfTags is the number of tags in the set of tags that must be matched.
numberOfTags