-->
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: list-index Strategies
PostPosted: Wed Oct 12, 2005 4:52 pm 
Newbie

Joined: Tue Oct 14, 2003 8:21 pm
Posts: 4
K, I'm revisiting Hibernate for the first time since early versions of 2. I'm trying to figure out how to do bi-directional mapping via an array.

The last time I tried to do this I used the child primary key for my list-index. This caused the resulting child array to have many empty elements.

My question is what are people using to poulate the list-index? I'm using MySQL so I don't have the option of using ROWNUM. Do I need an actual column in the child table for list-index, and how are you updating the values of the column per query? Can I just use a variable in the child class without the db column?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 12, 2005 9:34 pm 
Expert
Expert

Joined: Mon Jul 04, 2005 5:19 pm
Posts: 720
http://www.hibernate.org/hib_docs/v3/re ... ns-indexed


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.