Allow nested classes in HQL

Description

If I want to query a nested class using ISession.Find, how could I make my from expression?
Using "from parentclass+nestedclass" will cause NHibernate to throw a exception.

Environment

windows 2003,.net 1.1

Activity

Show:

Fabio Maulo August 4, 2010 at 9:00 PM

you can use a specific entity-name and avoid the FullName in queries.

Rhys Campbell September 18, 2008 at 9:12 AM

Is there any progress on this?
querying
"from Foo where Foo.class = Foo+FooSubclass"
errors where FooSubclass is an inner class of Foo

Karl Chu April 19, 2008 at 3:24 PM

Sounds like this needs a new parser. Postponed until then.

Former user June 11, 2005 at 5:01 AM

No I didn't, actually I think that modifying the HQL parser to handle "" would be problematic. The lexer (PreprocessingParser) always treats "" as a delimiter and it's not easy to determine during lexical analysis whether "+" is a delimiter or a part of a nested class name. Maybe we could introduce quoting of class names using backticks instead? This could also help when class names collide with reserved words.

MikeM June 10, 2005 at 9:17 AM

moving fix to post-1.0. Sergey - if you've made any progress on modifying the hql parser to support this go ahead and change to 1.0 then.

Won't Fix

Details

Assignee

Reporter

Components

Affects versions

Priority

Who's Looking?

Open Who's Looking?
Created May 24, 2005 at 10:11 AM
Updated August 4, 2010 at 9:00 PM
Resolved August 4, 2010 at 9:00 PM
Who's Looking?