• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HibernateTemplate.find Long array vs Object array

 
Sharon whipple
Ranch Hand
Posts: 294
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Sharon whipple
Ranch Hand
Posts: 294
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anyone?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic