OK.. I'm stuck.
Can someone help me converting this JQL
SELECT a FROM Asset a WHERE ?1 IN (SELECT c FROM a.categories c)
categories is a collection of Enum. I have difficulty converting the WHERE part. I don't understand why method CriteriaBuilder.IN only receive one value.
Anyone can help me?