-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Newbie's question, accessing result set
PostPosted: Tue Oct 02, 2007 6:00 am 
Newbie

Joined: Wed Sep 05, 2007 9:26 am
Posts: 16
Hi,

I have following query, now how to access the sal and age in the result list?
Thanks,
A.C.
List result = session.createQuery("select emp.sal, emp.age
from comp.Emp
as emp").list();


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 02, 2007 8:03 am 
Regular
Regular

Joined: Sun Sep 30, 2007 7:51 pm
Posts: 93
http://www.hibernate.org/hib_docs/v3/re ... ing-scalar

Regards,
Pavol


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.