[ http://jira.nhibernate.org/browse/NH-810?page=all ]
Sergey Koshcheyev updated NH-810:
---------------------------------
Fix Version: 1.2.0.CR1
Component: Core
Priority: Minor (was: Blocker)
Summary: Prevent use of many-to-one association in Expression.Eq (was: many-to-one mapping and Expression.Eq)
type: Improvement (was: Bug)
Now that I have looked at it closer, this is expected. You have a type mismatch since you are comparing a User object to its identifier. I'll see whether it is possible to detect this in criteria and throw an appropriate error.
> Prevent use of many-to-one association in Expression.Eq
> -------------------------------------------------------
>
> Key: NH-810
> URL: http://jira.nhibernate.org/browse/NH-810
> Project: NHibernate
> Type: Improvement
> Components: Core
> Versions: 1.2.0.Beta2
> Reporter: Sergiy Strelbitskyy
> Priority: Minor
> Fix For: 1.2.0.CR1
> Attachments: IssueDemo.RAR
>
> many-to-one mapping and Expression.Eq fails when trying to do Criteria.List()
> Sample project to reproduce this error in attach.
> Configuration: .NET2, MS SQL 2005
> See also: http://forum.hibernate.org/viewtopic.php?t=967213
--
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
|