How can i get Map object from Hibernate Query
<p>Currently i am getting List of Object form Hibernate Query</p>

<p>My code is:</p>

<pre><code>session.createSQLQuery("SELECT c.EMP_ID, COUNT(*) FROM employee c WHERE c.CITY=:someCity")
List&lt;Object[]&gt; objList =myQuery.list();
</code></pre>

<p>Here i am getting only two parameters EMP_ID and COUNT</p>

<p>Is there any way so i can Map
like</p>

<pre><code>Map&lt;int empId, int count&gt; objList =myQuery.someMethod();
</code></pre>