-->
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: Sorted Map
PostPosted: Fri Aug 05, 2005 2:08 pm 
Beginner
Beginner

Joined: Fri May 13, 2005 11:48 am
Posts: 32
I have a mapping file for a sorted map
Code:
<map name="Items" inverse="true" order-by="DisplayOrder">

However the .Net framework Hastable says
Quote:
Represents a collection of key-and-value pairs that are organized based on the hash code of the key


Anyone know how to get around this?

* I have looked at the logs and the SQL is right.
* Mapping file is working because the sort is close.
* NHibernate documentation is weak here. How do you add to the docs?

Do I just have to use a bag instead?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 05, 2005 3:37 pm 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
NHibernate uses ListDictionary in this case to maintain the order, and so should you. To add to the docs either create a JIRA issue so that somebody from the team adds it for you, or create a Wiki page, but I believe that this is covered in the docs.


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.