-->
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: What support is there for tree structures?
PostPosted: Thu Mar 03, 2005 5:28 pm 
Newbie

Joined: Thu Mar 03, 2005 4:51 pm
Posts: 3
Hibernate version:
2.1.7c

Question:
I am currently not a hibernate user but am looking at to determine if it is a solution for my next app (vs. writing sql myself). I have spent the last couple of days sifting through tutorials, faqs, the reference material and forum posts/replies and trying things out so to determine this myself but I still have one issue that I cannot seem to resolve. I'm reaching a point where I must make a decision and I don't want to choose hibernate only to find out (too late) that it won't support what I need to do. Hence my post....and much! much! much! appreciation to any and all feedback.

My data model consists of an object that has a reference to an ordered list of nodes. Each node may also have a reference to an ordered list of nodes.


MyObject
|
--------------------------
| |
NodeA1 NodeA2
| |
------------- --------------
| | | |
NodeB1 NodeB2 NodeC1 NodeC2


I was very excited to hear that hibernate has a <list> element in the mapping file and will subsequently take care of keeping order in the underlying database. However, when I attempted to prototype this I found myself not knowing how to declare this in the mapping file. I also encountered dialog in a post (albeit in 2003) that indicated hibernate does not support tree structures (modeling and recursive loading/saving).

I would love for someone to tell me that improvements have been made since then and that hibernate will support the model I require. If so, I would also appreciate some guidance that will tell me how to achieve this support (e.g., reference to documentation, example, whatever...).

Many thanks!!!![code][/code]


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.