hql = "from Outer o where o.id.DetailId=?" causes this exception:
NHibernate.Test.FumTest.KeyManyToOne : NHibernate.QueryException : unexpected token: outer [from Outer o where o.id.DetailId=?]
when it is changed to: hql = "from NHibernate.DomainModel.Outer o where o.id.DetailId=?"
everything works fine.
Environment
None
Activity
Former user
May 12, 2005 at 11:33 AM
This test works now, there apparently was some change in HQL parsing code...
Robert Warriner
August 19, 2004 at 2:08 PM
Sounds like a namespace issue. I have had the need in the past to create a class called "System" to represent things. This, of course, conflicts with .NET's "System" class. To resolve it, I had to give it a fully qualified name (like you did at the end of your comment).
FumTest.KeyManyToOne
hql = "from Outer o where o.id.DetailId=?" causes this exception:
NHibernate.Test.FumTest.KeyManyToOne : NHibernate.QueryException : unexpected token: outer [from Outer o where o.id.DetailId=?]
when it is changed to:
hql = "from NHibernate.DomainModel.Outer o where o.id.DetailId=?"
everything works fine.