-->
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: how to get the data from 2 tables
PostPosted: Tue Apr 10, 2007 8:23 am 
Newbie

Joined: Tue Apr 10, 2007 7:31 am
Posts: 3
Quote:

hi to all

please provide me help regording this

i need to get data from 2 tables. for that i build query like this:-



Query query= session.createQuery("select a.name,u.phone from com.bosch.Admin a, com.bosch.User u where u.no=a.adminid");

ArrayList al=(ArrayList) query.list();

i con't able to type cast into either User or Admin.

What I can do now .

please give me reply

thanking you,
Nagendra



Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 10, 2007 9:14 am 
Expert
Expert

Joined: Fri Aug 19, 2005 2:11 pm
Posts: 628
Location: Cincinnati
it's an object array

_________________
Chris

If you were at work doing this voluntarily, imagine what you'd want to see to answer a question.


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.