-->
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: list sorted by list-index ?
PostPosted: Wed Dec 05, 2007 2:51 pm 
Newbie

Joined: Wed Dec 05, 2007 12:55 pm
Posts: 1
Hibernate version:
3.2.2.ga

Mapping documents:
<list name="education" lazy="true" table="person_education_relation" cascade="all">
<key column="user_id" />
<list-index column="education_idx" />
<many-to-many class="net.model.Education" column="education_id" />
</list>

Name and version of the database you are using:
Oracle 10g

It does not give an Exception, but does not sort the list based on the list-index column. When I do a 'select * from person_education_relation' in SQLDeveloper the results show the zeroth (0) index as the second row returned. It seems Hibernate is actually sorting based on the ROWNUM in Oracle and ignoring the list-index column. We had a data corruption which is why the ROWNUMS are messed up anyway, but I can't seem to find anybody with a similar issue.

Any ideas? Links, etc would be helpful.

Thank you.


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.