title: Can Hibernate return a collection of result objects OTHER than a List?
body: <p>Does the Hibernate API support object result sets in the form of a collection other than a List? </p>
  
  <p>For example, I have process that runs hundreds of thousands of iterations in order to create some data for a client. This process uses records from a Value table (for example) in order to create this output for each iteration. </p>
  
  <p>With a List I would have to iterate through the entire list in order to find a certain value, which is expensive. I'd like to be able to return a TreeMap and specify a key programmatically so I can search the collection for the specific value I need. Can Hibernate do this for me?</p>