From: Ignat Z. (JIRA) <no...@at...> - 2006-05-15 06:56:14
|
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 |