-->
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: Can Hibernate help in Tree-like search?
PostPosted: Wed Nov 23, 2005 4:58 pm 
Senior
Senior

Joined: Tue Sep 13, 2005 2:01 am
Posts: 137
I have a book category that is a tree structure. When user seach category A, it should return all books of category A and its child categories.

category table
---------------------------------
ID name Parent-category


Book
-----------------------------
ID title author category


Do I have to retrieve all the books from DB and check their categories? If this is the case, very inefficient and consuming all momeries.

Can Hibernate help?
Ideas/suggestion appreciated.

Thanks,
Dave


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 23, 2005 6:26 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Please go to the regular user forum, this is not EJB 3.0 related. You might want to read the documentation about the available fetching options in Hibernate.


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.