Using sql column names in hibernate createSQlquery result
- by Ricardo
Hi all, 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, im 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 like jdbc and refer to the columns by their sql name insted of their index? thanks