Hi guys,
I have to execute a complexe SQL Request on Oracle DataBase.
My request uses an Oracle function like this :
SUM(DECODE(table.field,value,1,0)
The problem is that when I try to execute this request through Hibernate
I get the following exception :
net.sf.hibernate.QueryException: undefined alias: decode [.....
Obviously Hibernate does not understand the DECODE function.
How could I make it understand this function ?
Is there any place, for example the mapping.xml file
where I could specify to Hibernate to ignore the DECODE function ?
Any idea about this issue ?
moh.
|