java.sql.SQLException: ORA-00932: inconsistent datatypes: expected NUMBER got BINARY
问题 I have a method in Dao Class that returns List<Object[]> back and I am using named Query public List<Object[]> getListByCustomer(Session session, int customerId, List<Integer> strIds) { Query namedQuery = session.createSQLQuery(QueryConstants.EXPORT); namedQuery.setParameter("customer", customerId); namedQuery.setParameter("stringId", strIds); List<Object[]> objects = namedQuery.list(); return objects; } I want to pass List<Integer> strIds in stringId into the named query as follows : public