-->
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: Storing a hash map with multiple values types
PostPosted: Fri Feb 04, 2005 12:19 pm 
Newbie

Joined: Tue Feb 01, 2005 10:14 am
Posts: 1
I have an application using a local XML file for data storage using Castor. I am now adding database support (with hibernate) and have full control of Database design. However, I have a hash map with multiple primitive data types (such as "String" and "Double"). The volume of data I am passing is very high so efficiency is crucial. From what I can tell, there is no way to have a discriminator on a Map's element type, however throwing all these values into a class and moving them over to a new hash map one at a time to put them into their proper data types will be inefficient. I cannot use multiple hash maps (one for each data type) because that will cause problems for castor. Has anyone out there dealt with a hash map with multiple value types? Is there any good solution?


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.