aspose file tools*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 77

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

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


- Rohit
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: org.hibernate.hql.ast.QuerySyntaxException: Invalid path?
 
Similar Threads
String-Hibernate read-only mode (FlushMode.NEVER)
hibernate3 save method exception
How to get aroun LazyInitialization exceptions using Spring HibernateDaoSupport?
hibernate3.3-spring3 project
org.hibernate.MappingException: Unknown entity: