-->
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.  [ 5 posts ] 
Author Message
 Post subject: ListIndex for bidirectional List collections?
PostPosted: Tue May 17, 2005 4:24 pm 
Newbie

Joined: Fri May 13, 2005 4:51 pm
Posts: 12
Hello!

I've made a bidirectional association for a List collection. I may see that the ListIndex does not get assigned, i.e. all rows have the value null. If I make it as a unidirectional List collection the ListIndex gets updated perfectly.

Am I missing something or can't I have bidirectional List collections?


Best regards,

Henrik Dahl


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 18, 2005 1:52 am 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
Can you show us your mapping xmls? It should work.


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 18, 2005 3:57 am 
Senior
Senior

Joined: Sat May 14, 2005 8:40 am
Posts: 130
Does it really work in NH? Because bidirectional relations are not supported for lists in Hibernate 2.x: http://www.hibernate.org/193.html.

_________________
Cuyahoga


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 18, 2005 4:34 am 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
Aha! Didn't know that, thanks for the information, Martijn! If it doesn't work in Hibernate, it won't work in NH either...


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 18, 2005 12:16 pm 
Newbie

Joined: Fri May 13, 2005 4:51 pm
Posts: 12
Thank you very much.

It was very nice of you to post the link.


Best regards,

Henrik Dahl


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 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.