I have the following situation.
public class TestExecution {
private Collection<TestExecutionTag> testExecutionTags;
}
public class TestExecutionTag {
private Tag tag;
}
public class Tag {
private String name;
}
What I now want to do is to perform following query using standard JPA Criteria API, something like:
Select test executions (TestExecution) which don't have associated any of the tags (Tag) with name field value in provided list.
I would describe it as
Select testExecution WHERE testExecution.testExecutionTag.tag.name NOT IN (<ArrayList of String values>).
Is something like this possible?
EDIT: I'm sorry I didn't specify it correctly, since I thought it's irrelevant. The whole goal was actually to select test executions with specific tags but from them exclude those which contain other tags.