I have spring JPA Repository Interface:
public interface ElementLogRepository extends JpaRepository<ElementLog, String>
There is Query:
@Query("SELECT pl.element.id FROM ElementLog pl WHERE pl.tags IN :tags)")
public List<ElementLog> findLatestElementLogsByTags(@Param("tags") List<Tag> tags);
When I call method findLatestElementLogsByTags I receive all ElementLog which contains any tag from List<Tag> tags.
How can I modify query to get all ElementLog which contains all tags from List<Tag> tags ?
Thank you in advance.
ElementLogwith single tag each, you want singleElementLogwith list of all tags? - cst1992