-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: from "this" no longer working with AST parser?
PostPosted: Fri Mar 11, 2005 12:00 pm 
Beginner
Beginner

Joined: Wed Feb 04, 2004 4:54 am
Posts: 25
I've extended the collection persister and I'm using this code:

getSession().iterateFilter(this,"from this "+wherecondition, new QueryParameters( new Type[1], new Object[1] ))

This worked fine with older 3.0betas and currently works with the classic query translator factory but fail with the default AST!

Hibernate version:
3.0rc1

Full stack trace of any exception that occurs:
*** ERROR: this is not mapped.
16:34:22,135 ERROR parser:40 - *** ERROR: Invalid path: 'this.status'
16:34:22,151 ERROR parser:40 - *** ERROR: <AST :0: unexpected end of subtree
org.hibernate.hql.ast.QuerySyntaxError: this is not mapped. [from this where this.status = 2]
at org.hibernate.hql.ast.ErrorCounter.throwQueryException(ErrorCounter.java:74)
at org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:195)
at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:130)
at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:98)
at org.hibernate.impl.SessionFactoryImpl.getFilter(SessionFactoryImpl.java:440)
at org.hibernate.impl.SessionImpl.getFilterTranslator(SessionImpl.java:1111)
at org.hibernate.impl.SessionImpl.iterateFilter(SessionImpl.java:1164)

_________________
Stefano Bagnara


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 11, 2005 12:12 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
post it to JIRA please

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.