Expert |
|
Joined: Fri Aug 19, 2005 2:11 pm Posts: 628 Location: Cincinnati
|
you can use that first sql query you already have written. make it a named sql query in hibernate and it'll work just fine.
there are many good examples of sql named queries in the source test code that came with the hibernate download, if you just run a text search for sql-query on the hibernate/test folder.
also, session.createSqlQuery() works.
_________________ Chris
If you were at work doing this voluntarily, imagine what you'd want to see to answer a question.
|
|