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
|