| i can't passthrough a varargs in Restrictions.in(criterio.getCampo(), valor.toArray()); or Property.forName(criterio.getCampo()).in(valor); the same error was showed. In Netbeans Watches i see the problem. (see image below) java.lang.ClassCastException: [Ljava.lang.Integer; cannot be cast to java.lang.Integer |