[hibernate-issues] [Hibernate-JIRA] Created: (HHH-5391) JUnit fails when we try to execute "Update queries via SQL"

Dhaval Patel (JIRA) noreply at atlassian.com
Mon Jul 19 03:31:19 EDT 2010


JUnit fails when we try to execute "Update queries via SQL"
-----------------------------------------------------------

                 Key: HHH-5391
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5391
             Project: Hibernate Core
          Issue Type: Bug
          Components: query-sql
            Reporter: Dhaval Patel


We are trying to run our test cases via JUnit 

We are using SQL queries in our DAO layer.
It runs fine when we test the code from Web (UI) client.

However when test the code from JUnit we get the following error:

java.lang.UnsupportedOperationException: Update queries only supported through HQL

Hibernate version: 3.2.0.ga

Do we have a solution for this? 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list