org.hibernate.query.Query.list deprecated
<p>I'm using SessionFactory (hibernate specific) methods.</p>

<p>org.hibernate.query.Query.list is deprecated. What is the non deprecated way to obtain results from a hibernate query? I can't believe I'm having this difficult a time trying to find this :)</p>

<p>For example:</p>

<pre><code>&lt;UploadStatus&gt; query = session.createQuery("select us from UploadStatus us where us.uploadFileId = :uploadFileId")
    .setParameter("uploadFileId", fileUploadId); code here
 List&lt;UploadStatus&gt; us = query.list();
</code></pre>

<p>The list() method above is deprecated. What is the proper/non deprecated replacement for this?</p>

<p>Thanks
-Andrew</p>