HQL can't parse when class is named "Outer"

Description

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.

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).

Issue by design.

Robert

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Who's Looking?

Open Who's Looking?
Created July 31, 2004 at 12:00 PM
Updated May 12, 2005 at 11:33 AM
Resolved May 12, 2005 at 11:33 AM
Who's Looking?