Forums Register Login

HibernateTemplate.find Long array vs Object array

+Pie Number of slices to send: Send
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?
+Pie Number of slices to send: Send
Anyone?
It's a beautiful day in this neighborhood - Fred Rogers. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1896 times.
Similar Threads
add all subfolders to classpath
Sorting arrays
Finding difficulity in Parameter utilisation in procedure..!
"=" oprator question
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 07:08:12.