Lets imagine that I have some Product entity with java.List of tags, as blelow:
@Entity
public class Product impements Serializable{
...
private List<String> tags;
}
and I have user, that wants to search for products tagged (for example) by any of tags: Car, Motocycle, Plane.
so when it comes to search i have list of tags in my entity, and list of search tags, where all i need is to have at least one of them it in my product’s tags list. I don’t know how to write such query. thx for help
before beny23 posted his solution i fixed it by adding
but his answer is also correct.