|
From: Andrei A. (JIRA) <nh...@gm...> - 2011-05-22 23:37:43
|
[ http://216.121.112.228/browse/NH-2328?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=21148#action_21148 ]
Andrei Alecu commented on NH-2328:
----------------------------------
I just came across the same bug, blocking development for us.
What I don't seem to understand is, why does this work:
var boxes = s.CreateQuery("from ToyBox t where t.Shape.class = 2")
.List<ToyBox>();
Instead of this:
var boxes = s.CreateQuery("from ToyBox t where t.Shape.class = Square")
.List<ToyBox>();
With this mapping:
<any name="Shape" id-type="int" meta-type="int">
<meta-value value="1" class="Circle"/>
<meta-value value="2" class="Square"/>
<column name="s_object_id" />
<column name="object_id" />
</any>
Why is the value attribute being used for .class in HQL? Shouldn't it use class? Note that the same thing happens with meta-type="string" (the default)
Is this by design? I couldn't find any documentation on the matter but it doesn't look right to me.
Any ideas?
> Linq query on <Any/> fails
> --------------------------
>
> Key: NH-2328
> URL: http://216.121.112.228/browse/NH-2328
> Project: NHibernate
> Issue Type: Bug
> Components: Linq Provider
> Affects Versions: 3.0.0.Alpha2
> Reporter: Michael Kobaly
> Priority: Major
> Attachments: NHibernate.Test.zip
>
>
> Please read NHUsers group posting here for description of problem.
> http://groups.google.com/group/nhusers/browse_thread/thread/fa831bd703842e1e
> I excluded the lib folder from the zip file since upload says not to include dlls. I am using NH 3 Alpha 2 with all supporting dlls. First time posting bug..sorry in advance if I am doing it wrong.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|