-->
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: displaying data from two tables using HQL
PostPosted: Wed Mar 09, 2005 2:29 am 
Newbie

Joined: Wed Mar 09, 2005 2:15 am
Posts: 3
hi,

I am trying to display two coloumns, one from each table. but i am not able to find the right querry for doing so..

please send me a querry for the same.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 09, 2005 4:45 am 
Expert
Expert

Joined: Fri Nov 07, 2003 4:24 am
Posts: 315
Location: Cape Town, South Africa
Next time you post - please follow the instructions.

I should really ignore your post but I'll try to help out.

Code:
session.createQuery("select a.propertyFromA, b.propertyFromB from ClassA a, ClassB b
where...").list();


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.