[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-746) Criteria query on "class" property

Thorsten Wenzlaff (JIRA) noreply at atlassian.com
Mon Feb 12 05:29:42 EST 2007


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-746?page=comments#action_26078 ] 

Thorsten Wenzlaff commented on HHH-746:
---------------------------------------

This issue is still present for discriminators with the type String.
Since getDiscriminatorSQLValue() value is used to determine the value of the discriminator (which adds the quotes to the discriminator value), the usage of this value in a prepared statement will fail!

> Criteria query on "class" property
> ----------------------------------
>
>          Key: HHH-746
>          URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-746
>      Project: Hibernate3
>         Type: Improvement

>   Components: core
>  Environment: 3.06, Oracle
>     Reporter: Cuong Tran
>     Assignee: Joshua Davis
>     Priority: Minor

>
>   Time Spent: 1 hour
>    Remaining: 0 minutes
>
> Currently, when using the "class" property on Criteria query, hibernate doesn't translate the value into the underlying discriminator.  See the discussion/test case here:
> http://opensource.atlassian.com/projects/hibernate/secure/CreateIssue.jspa

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