-->
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: Problem with Parent/child relationship
PostPosted: Thu Sep 25, 2003 7:32 am 
Newbie

Joined: Wed Sep 17, 2003 5:15 am
Posts: 9
Hi all !

I'am using Hibernate 2.0 with PostgreSQL 7.3.2

I have 2 entity: User and Account. And i modeling Parent/Child relationship between Account(Parent) and User(Child) , as described in Hibernate Reference Manual.
I'am using List (and <list>...</list> mapping) for Users in Account, and when i saved Account with Users, hibernate doesn't store ListIndex for Users (it's table column remains =null in database).
But, when i changed List to Set it become all right. But i want to use List.
Is it possible? or i should use Set in any case with Parent/Child relationship?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 25, 2003 9:29 am 
Beginner
Beginner

Joined: Tue Aug 26, 2003 9:50 am
Posts: 34
Location: Weiden Opf. / Germany
We ran into similar problems.

What we did to get around it was using to bags instead. Since Bag implements the List interface it works fine for us.


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.