wood burning stoves 2.0*
The moose likes Servlets and the fly likes getting results from uniqueResult() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Reply locked New topic
Author

getting results from uniqueResult()

Aaron Parker
Greenhorn

Joined: Jan 31, 2004
Posts: 27
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();
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30138
    
150

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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: getting results from uniqueResult()
 
Similar Threads
[hibernate] How to load lazy collections
NX: Exam Results - email or in Database?
getting results from uniqueResult()
Passed SCEA with 91% marks.
Case Insensitive Hibernate Queries