-->
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: Return HashMap intead of list????
PostPosted: Sat Mar 06, 2010 3:09 pm 
Newbie

Joined: Tue Jan 05, 2010 2:33 pm
Posts: 15
Is it possible to get a hibernate query to return the results as an indexed HashMap rather than a List. This would make it easy to test if objects are contained in the results using the id.


Top
 Profile  
 
 Post subject: Re: Return HashMap intead of list????
PostPosted: Sat Mar 06, 2010 8:18 pm 
Newbie

Joined: Tue Jan 05, 2010 2:33 pm
Posts: 15
Well I think I will just have a method to convert the ArrayList into a Hashmap after the List is retrieved from the DB.


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.