From: NHibernate J. <mik...@us...> - 2006-11-17 17:58:31
|
[ http://jira.nhibernate.org/browse/NH-816?page=all ] Fabio Maulo updated NH-816: --------------------------- Attachment: CriteriaWithClassProperties.patch Patch for the issue. All NHb old test passed. > Criteria using class with discriminator > --------------------------------------- > > Key: NH-816 > URL: http://jira.nhibernate.org/browse/NH-816 > Project: NHibernate > Type: Bug > Components: Core > Versions: 1.2.0.Beta2 > Reporter: Fabio Maulo > Priority: Minor > Attachments: CriteriaWithClassProperties.patch > > session.CreateCriteria(typeof(MaterialUnit),"mu") > .CreateAlias("mu.Material", "ma") > .Add(Expression.Property.ForName("ma.class").Eq(typeof(MaterialUnitable))) > .List(); > The problem is in CriteriaQueryTranslator.GetTypedValue because the method use the DiscriminatorSQLValue istead DicriminatorValue. > I'm working on it. -- 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 |