[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-1749?page=c...
]
Ignat Zapolsky commented on HHH-1749:
-------------------------------------
I'd like to have possibility either use conrete discriminator value that will be
returned from HQL query as .class field or to have entity-name returned in such queries
instead of concrete discriminator value.
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira