[hibernate-issues] [Hibernate-JIRA] Created: (HHH-3960) found a bug in translating hql to sql

jin (JIRA) noreply at atlassian.com
Mon Jun 15 00:15:33 EDT 2009


found a bug in translating  hql to sql   
-----------------------------------------

                 Key: HHH-3960
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3960
             Project: Hibernate Core
          Issue Type: Bug
          Components: core, query-hql
    Affects Versions: 3.3.1
         Environment: hibernate 3.3
            Reporter: jin


i executed fllowing code:
session.createQuery("update Item a set a.price=? where ( a.itemId.code=? and a.itemId.name=?) or (a.itemId.code=? and a.itemId.name=?))").exeuteUpdate();

but,the print sql is:

update Item a set a.price=? where  code=? and  name=?  or   code=? and  name=?

hibernate removed parentheses from the hql.



-- 
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