I would like to test SQLQuery of Hibernate API, I managed to do so :

```
    SQLQuery query = session.createSQLQuery("Select * from table;");

    List<Object[]> l = query.list();
    Iterator<Object[]> it = l.iterator();

    while(it.hasNext()) {
        Object[] o = it.next();
        System.out.println(o[0] + " - " + o[1]);
    }

```

I managed to get the values in the table, from the two columns. But is there a way to get the column numbers of the tables and also their names?

(I know it's pretty stupid because Hibernate's major benefit is ORM and I'm just here trying to query some unmapped information)