I am using hibernate's createSQLQuery method to return a list.
code:
Query query=session.createSQLQuery("select name,marks,grade from student where id=12");
List list = query.list();
Also I want to know what will be returned in list. Will it contain just values or will it also contain column name.
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<String,String> (Map<colName,colValue>) to a new list List<Map<String,String>> How can I do this.