-->
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 write a query interacting with two tables
PostPosted: Tue Jun 28, 2005 6:13 am 
Newbie

Joined: Fri Apr 01, 2005 2:15 am
Posts: 14
Hi all,

when we write a query in hibernat we use a bean having all the properties as there in the table.But If I have to write a query interacting
with two tables then how to do this.Like I have two tables having 10 and 8 columns.I want to select 4 columns from each.How should I write this query.What will happen to those fields of the bean which are not selected in the query?

With regards,
ajse


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.