How to run native SQL from Hibernate?
Hibernate 2 provides createSQLQuery() method on the Session for native SQL. However, this method must return a persistent class and can be costly at times.
When raw power is needed, get a JDBC connection by calling connection() method on the Session.
Technorati Tags: Hibernate
Comments
Of cause you can also do session.createSQLQuery() as well