Hello.
If I execute the following hql:
Code:
select pogodbe.delojemalci.delojemalciid
from si.rais.eplace.hibernate.Pogodbepodatki
I get my results.
But, if I try to filter the result like this:
Code:
select *
from si.rais.eplace.hibernate.Pogodbepodatki
where pogodbe.delojemalci.delojemalciid = 25391
I get an "Invalid path" error.
The field is the same in select and in where clause! ??
Using an alias for the table helps, but in my case, I can't use an alias (have a generated HQL text).
Hibernate version: 3.1.rc2
Full stack trace of any exception that occurs:
10:44:02,722 ERROR [PARSER] Invalid path: 'pogodbe.delojemalci.delojemalciid'
10:44:02,722 ERROR [PARSER] <AST>:0:0: unexpected end of subtree
10:44:02,722 ERROR [PARSER] left-hand operand of a binary operator was null
10:44:02,738 INFO [STDOUT] Hibernate Exception:Invalid path: 'pogodbe.delojemalci.delojemalciid' [select pogodbe.delojemalci.delojemalciid
from si.rais.eplace.hibernate.Pogodbepodatki
where pogodbe.delojemalci.delojemalciid = 25391] ; Invalid path: 'pogodbe.delojemalci.delojemalciid'
Name and version of the database you are using:
ORACLE 10.2
The generated SQL (show_sql=true):
No generated SQL yet