-->
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.  [ 3 posts ] 
Author Message
 Post subject: What is the object type in the returned collection
PostPosted: Tue Aug 03, 2004 9:34 am 
Newbie

Joined: Tue Aug 03, 2004 9:28 am
Posts: 2
Hi folks,

I made an sql query which uses a inner join using the HQL statement (no declarative relationship in the mapping file), I get back a list of found records wich are of type Object??!!
How can I get the returned data and display in a jsp page?

This is my hql:

list = session.find("select employee.empId, employee.fullName from Employee as employee, EmpYear as empYear where employee.empId = empYear.empId and empYear.assYear = 2003");

Thanks

Karema


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 03, 2004 9:35 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Collection of Object[].

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 03, 2004 2:13 pm 
Beginner
Beginner

Joined: Thu Jul 22, 2004 2:15 pm
Posts: 35
I have done such a thing with

http://www.hibernate.org/hib_docs/api/n ... ml#scroll()

HTH,
Paul


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.