CriteriaBuilder has overloaded method isMember(...)
Create a predicate that tests whether an element is a member of a collection.
<E,C extends java.util.Collection<E>>
Predicate isMember(E elem, Expression<C> collection)
<E,C extends java.util.Collection<E>>
Predicate isMember(Expression<E> elem, Expression<C> collection)
I got ambiguous compilation error for the following call:
CriteriaBuilder.isMember((Expression<Object>)a, (Expression<Collection<Object>>)b);
The member type can be any, so it is Object type. How to fix it? Thanks.