I have a couple of sql views with composite primary keys that I want to query, and since Hibernate makes it a pain to work with composite keyes, I'm using createSQLQuery. The problem is that this method can only return a List, and I need to refer to the colums by their index.

Any chance I could do something like jdbc and refer to the columns by their sql name instead of their index?

Edit
Report