From: NHibernate J. <mik...@us...> - 2006-11-02 10:17:32
|
[ http://jira.nhibernate.org/browse/NH-571?page=all ] Sergey Koshcheyev closed NH-571: -------------------------------- Fix Version: 1.2.0.Beta1 Resolution: Fixed Fixed correctly this time. > class keyword in WHERE broken for table-per-subclass mappings > ------------------------------------------------------------- > > Key: NH-571 > URL: http://jira.nhibernate.org/browse/NH-571 > Project: NHibernate > Type: Bug > Components: Core > Versions: 1.0.2 > Reporter: Symon > Fix For: 1.2.0.Beta1, 1.0.3, 1.2.0.Alpha1 > > Classes mapped using table-per-subclass are not returned correctly when using the "class" keyword in an HQL statement. The SQL statement generated contains a case statement in the WHERE clause with a discriminator allocated to each subclass, however the value allocated to the class name after the "class" keyword is not transformed into one of the subclasses - it appears to always return 0. > See the forum thread http://forum.hibernate.org/viewtopic.php?t=957690&sid=ec894da91fc1bc0bbe0150a4e677f4f0 for further information. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |