Forums Register Login

getting results from uniqueResult()

+Pie Number of slices to send: Send
How do I get results out of the uniqueResult() method of the Query class. I can get a result into it, but I can't find anything that explain how to get stuff out!

Object results;
results = query.uniqueResult();
+Pie Number of slices to send: Send
Aaron,
Is the Query class from a library? What is the package name?

There is a javax.management.Query, but I don't think that's the one you are referring to.
+Pie Number of slices to send: Send
Apparently it's a Hibernate thing, but in any case this is a duplicate so this copy will be closed.

Please don't post the same question in multiple forums, it creates duplicate conversations and wastes the time of the people trying to help you.

Dave
We find this kind of rampant individuality very disturbing. But not this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


Reply locked
This thread has been viewed 587 times.
Similar Threads
Case Insensitive Hibernate Queries
Passed SCEA with 91% marks.
[hibernate] How to load lazy collections
NX: Exam Results - email or in Database?
Breaking doXXX methods down into smaller ones
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 01:07:36.