-->
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.  [ 1 post ] 
Author Message
 Post subject: How to retrieve value from same table
PostPosted: Thu May 12, 2011 2:05 am 
Newbie

Joined: Thu May 12, 2011 1:27 am
Posts: 2
Hi Experts,

Consider database table is "e_table". It contains the fields are "e_id" and "e_name".

my question is:

How to retrieve and display the values when the same table is act as another table to retrieve the values like the following query.

"SELECT e1.*,e2.* FROM e_table e1,e_table e2;".

When i using the above query i got the answer in sql.

When i implementing in to hibernate it retrieves only the first renamed field but it does not retrieve second renamed field.

Any suggestion would be appreciated.
Thanks . . .


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

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.