Hi Joshua, I committed another hack in this area. Could you please look at it?
The problem is when I add an alternative to fromClass (in my case it's a collection valued path declaration, i.e. 'IN(path) id') and in a query after the first fromClass and comma there is another fromClass with class name matching a keyword (e.g. Order) I get a no viable alternative exception. So, below is a hack I came up with. Can you think of a nicer workaround? Thanks. fromClause ! : FROM^ fromClass ( ( COMMA! fromClass ) | ( joinType ) )* ; --- 218,233 ---- fromClause ! : FROM^ fromClass ! ( ( COMMA! ! ( fromClass | collectionValuedPathDeclaration ) ! exception ! catch [RecognitionException ex] ! { ! // alex: this is bad. if there was no viable alternative, ! // i assume it was a class name which was recognized as a keyword. ! // so call fromClass that is supposed to take care of resolving the conflict. ! fromClass(); ! } ! ) | ( joinType ) )* ; ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel