[hibernate-issues] [Hibernate-JIRA] Updated: (HHH-5081) @Type not working together with CriteriaQuery

Jesper Steen Møller (JIRA) noreply at atlassian.com
Tue Apr 20 19:15:20 EDT 2010


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-5081?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jesper Steen Møller updated HHH-5081:
-------------------------------------

    Attachment: hhh5081.zip

I took the original test and tried it in 3.5.1, ripping out the Spring stuff, structuring the test case as one of those found in the hibernate-entitymanager test suite.

However, both cases failed due to the Employee being inserted with an Email of: new Email("Test","test.org") but the assertEquals was for "James at test.org")

After correcting this, both queries returned the expected sequence, and seemed to produce the same SQL.
The attached ZIP contains the files, for overlaying onto the hibernate-entitymanager tree.

> @Type not working together with CriteriaQuery 
> ----------------------------------------------
>
>                 Key: HHH-5081
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5081
>             Project: Hibernate Core
>          Issue Type: Bug
>          Components: query-criteria
>    Affects Versions: 3.5.0-Final
>         Environment: spring 3.0.1, HSQLDB, maven 2.2.1
>            Reporter: Oliver Ringel
>         Attachments: hhh5081.zip, testcase.tar
>
>
> Using a userdefined @Type as parameter in a CriteriaQuery is not working properly.
> The typeClass seems to be ignored.
> Using the same @Type in a similar JPQL query is working as expected.

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