[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-1749) Convert discriminator field value into class name or class when discriminator field purposedly returned in query

Steve Ebersole (JIRA) noreply at atlassian.com
Thu Nov 16 10:47:05 EST 2006


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

Steve Ebersole commented on HHH-1749:
-------------------------------------

I dont understand what you are trying to suggest as an improvement.  You want they sample query above to return the java.lang.Class?  Actually would need to be entity-name (String) instead...

> Convert discriminator field value into class name or class when discriminator field purposedly returned in query
> ----------------------------------------------------------------------------------------------------------------
>
>          Key: HHH-1749
>          URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1749
>      Project: Hibernate3
>         Type: Improvement

>     Versions: 3.0.5
>  Environment: Win XP SP2, JDK 1.5.0_05, Hibernate 3.0.5
>     Reporter: Ignat Zapolsky

>
>
> It is possible to obtain discriminator field by specifying it in query, it is possible to use it since hibernate automatically replaces entity.class with discriminator column and converts class into associated discriminator value. But retreival of such field is useless since user cannot obtain .class from returned discriminator value and Hibernate expects .class, not discriminator in queries.
> Sample query : select cat.class from my.Cat as cat where ...

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