-->
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: LinkedHashMap
PostPosted: Wed Jul 21, 2004 9:55 am 
Regular
Regular

Joined: Mon Oct 06, 2003 7:17 am
Posts: 58
Location: Switzerland
Hi

We use LinkedHashMap's in our application. My problem is how can I map a LinkedHashMap with Hibernate? Because the LinkedHashMap is ordered and it implements the Map interface. This means for Hibernate that the Map is unorderd. When I use a SortedMap then I can add an implementation from the Comparable interface, but this is not the ordering that I want. Are there any solutions to this problem?

Thanks
Reto


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 25, 2004 3:55 pm 
Regular
Regular

Joined: Mon Oct 06, 2003 7:17 am
Posts: 58
Location: Switzerland
Maybe it helps somewone else. It is not possible to map a LinkedHashMap in Hibernate. I used now a SortedHashMap. Its not the same but I could change my code that It works now with a SortedHash map.

Reto


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.