-->
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: Tree Based Query
PostPosted: Tue Feb 10, 2004 11:14 pm 
Newbie

Joined: Sat Jan 31, 2004 4:32 pm
Posts: 4
Hi all,

I have a location entity that represents a tree of locations.. ie: world->north america->canada->toronto..

I also have an item entity that has a location many-to-one.. and i want to query for items who location is equal to or a child of..

ie: if item a is in location toronto.. I need to be able to query for items in canada and have that item returned..

any ideas?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 11, 2004 7:42 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
I don't think this is doable. It would need to use the hierarchical query capabilities of DB2 or Oracle, and that way not to be portable.

Not sure of me (I don't know much the hierarchical query), feel free to correct.

_________________
Emmanuel


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.