-->
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 do you query within a joined table?
PostPosted: Mon Nov 28, 2005 12:29 pm 
Beginner
Beginner

Joined: Wed Oct 19, 2005 3:30 pm
Posts: 25
Ive been working on an applicaiton where I want to store information about scholarships in several tables and let users search for a scholarship based on their personal criteria. To this end I have a scholarship table and several associated tables (right now they are sets of of strings). Im trying to query witihn those associated tables but have been thus far unable. I have been told to work with lazy associations but Im not sure thats answer. Ive started looking into joins and fetching to make sure hibernate goes and gets those associated tables but thats not working either. Then I ran across this from the hibernate documentation.

Quote:
A fetch join does not usually need to assign an alias, because the associated objects should not be used in the where clause (or any other clause). Also, the associated objects are not returned directly in the query results. Instead, they may be accessed via the parent object. The only reason we might need an alias is if we are recursively join fetching a further collection:


If one isnt supposed to use joined tables in the where, How does one search within a joined table?

For all my info please see my past topic on the same issue
http://forum.hibernate.org/viewtopic.ph ... highlight=


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.