wood burning stoves*
The moose likes Object Relational Mapping and the fly likes org.hibernate.hql.ast.QuerySyntaxException: Invalid path? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "org.hibernate.hql.ast.QuerySyntaxException: Invalid path?" Watch "org.hibernate.hql.ast.QuerySyntaxException: Invalid path?" New topic
Author

org.hibernate.hql.ast.QuerySyntaxException: Invalid path?

Philippe Desrosiers
Ranch Hand

Joined: Mar 29, 2006
Posts: 138
I'm trying to determine the size of a relational set in HQL like so:


I'm gussing the syntax is wrong or something, because Hibernate is throwing this at me:


Can anyone tell me what I'm doing wrong?
Philippe Desrosiers
Ranch Hand

Joined: Mar 29, 2006
Posts: 138
Holy crap I'm dumb. Nevermind.
Philippe Desrosiers
Ranch Hand

Joined: Mar 29, 2006
Posts: 138
Well, dumb I may be, but it seems this issue has reared it's head again. I am once again receiving the "Invalid Path" exception, but this time the HQL looks good to me...



Any ideas? Am I doing something wrong here?
Philippe Desrosiers
Ranch Hand

Joined: Mar 29, 2006
Posts: 138
heheh. Once again. I'm dumb (in case there was any doubt). The RoutingRule alias was "rr", not "r".

Pays to re-read your code once in a while.
Rohit Mehta
Ranch Hand

Joined: Mar 11, 2005
Posts: 79

:-) very small thing - i encountered it as well ..

what was surprising that I was getting result even in case of exception ....


- Rohit
 
GeeCON Prague 2014
 
subject: org.hibernate.hql.ast.QuerySyntaxException: Invalid path?