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

Dhaval Patel (JIRA) noreply at atlassian.com
Thu Aug 5 04:36:40 EDT 2010


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-5391?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=37987#action_37987 ] 

Dhaval Patel commented on HHH-5391:
-----------------------------------

It does not work with version 3.5 also

I used the following maven library for 3.5 version

	<dependency>
	    <groupId>org.hibernate</groupId>
	    <artifactId>hibernate-core</artifactId>
	    <version>3.5.3-Final</version>
    </dependency>


> 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