|
From: NHibernate J. <mik...@us...> - 2006-11-17 16:49:27
|
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
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
|
|
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 |
|
From: NHibernate J. <mik...@us...> - 2006-11-17 19:13:28
|
[ http://jira.nhibernate.org/browse/NH-816?page=all ] Sergey Koshcheyev updated NH-816: --------------------------------- Fix Version: 1.2.0.CR1 > 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 > Fix For: 1.2.0.CR1 > 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 |
|
From: NHibernate J. <mik...@us...> - 2006-11-19 17:21:23
|
[ http://jira.nhibernate.org/browse/NH-816?page=comments#action_14433 ] Fabio Maulo commented on NH-816: -------------------------------- Note: the patch include test but tests was committed. > 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 > Fix For: 1.2.0.CR1 > 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 |
|
From: NHibernate J. <mik...@us...> - 2006-11-20 08:34:34
|
[ http://jira.nhibernate.org/browse/NH-816?page=all ] Sergey Koshcheyev closed NH-816: -------------------------------- Resolution: Fixed Fixed, but I simplified the piece of code in CriteriaQueryTranslator a bit. > 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 > Fix For: 1.2.0.CR1 > 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 |