Hi!

We have found very strange HQL translation. Imagine this query

"from Obj PorC where PorC.Parent.Id = :PorC_PARENT and PorC.class in
(Client,Person)"

it is translated into correct sql
NHibernate: select obj0_.Id as Id0_, obj0_.Modifed as Modifed0_, <many
properties> from Obj obj0_ where obj0_.pare...@p0 and (obj0_.Typee in
(33 , 0));@p0 = 12

This works well until we add mapped Property "Person"
NHibernate: select obj0_.Id as Id0_, obj0_.Modifed as Modifed0_, <many
properties> , , obj0_.Person as Person0_ from Obj obj0_ where
obj0_.pare...@p0 and (obj0_.Typee in (33 , obj0_.Person));@p0 = 12

Error in the last chars "obj0_.Typee in (33 , obj0_.Person)"

Is it bug?

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to