store map in list using hibernate createSQLQuery method
<p>I am using hibernate's createSQLQuery method to return a list.</p>

<p>code:</p>

<pre><code>Query query=session.createSQLQuery("select name,marks,grade from student where id=12");
List list = query.list();
</code></pre>

<p>Also I want to know what will be returned in list. Will it contain just values or will it also contain column name.</p>

<p>If it also contain column name, then I want to break every element of this list to col name and its value; so that i can put Map<code>&lt;String,String&gt;</code> (Map<code>&lt;colName,colValue&gt;</code>) to a new list <code>List&lt;Map&lt;String,String&gt;&gt;</code> How can I do this.</p>