-->
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: ? on bi-directional associations
PostPosted: Thu Sep 09, 2004 8:18 pm 
Newbie

Joined: Thu Sep 09, 2004 7:55 pm
Posts: 8
hi all,

i currently joined an underway project that is employing hibernate for persistence. i read something in the guide that i'm trying to fully understand. it appears that hibernate does not support bi-directional associations in a 1 - m parent and child relationship using and indexed collection type. i'm sure there's a very obvious reason, or i just read this wrong but why but i simply don't understand how using an indexed collection is any different than an unindexed collection as it relates to bi-directional associations. could someone educate me on this topic?


tia,
sean


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 10, 2004 11:30 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Hibernate does not manage the relationship from a Java perspective (unlike EJB 2) for very good reason (dettached objects, java transparency, ...)
So when the association is bidirectional, there is 1 side that lead the relation, usually the many side.

How to do child.setParent(parent); and give Hibernate the index information?

Check
http://hibernate.org/155.html
and
http://hibernate.org/193.html

_________________
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.