Using sql column names in hibernate createSQlquery result
Posted
by Ricardo
on Stack Overflow
See other posts from Stack Overflow
or by Ricardo
Published on 2010-04-09T06:06:39Z
Indexed on
2010/04/09
6:13 UTC
Read the original article
Hit count: 499
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
© Stack Overflow or respective owner