posted 14 years ago
This form of "find":
List c = getHibernateTemplate().find(query, new Long[] { p1, p2, p3 } );
will throw:
Expected positional parameter count: 3, actual parameters: [[Ljava.lang.Long;@53f3d3af]
While this find:
List c = getHibernateTemplate().find(query, new Object[] { p1, p2, p3 } );
Runs OK
What is the different between passing the array as Long or as Object?