Skip to content
Advertisement

Execute native sql with hibernate

I’m using hibernate 4.2.6 and PostgreSQL 9.1 I’ve been trying to execute sql query with hibernate. I’ve written:

This query does not executed in DB. But if I write

corresponding row will add to table. Why hibernate doesn’t work, but native query wth JDBC works?

Advertisement

Answer

This should help you.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement