Hello all
in my mapping file i have the following discriminator formula:
Code:
<discriminator
type="java.lang.Integer"
formula=" CASE ( SELECT TAGB.INUTZERGRUPPE FROM TANGEBOT TAGB WHERE FK_TANGE_ILAUFNR=TAGB.ILAUFNUMMER)
WHEN 1 THEN 1
WHEN 2 AND (SELECT TAGB.FK_TAART_ILAUFNR FROM TANGEBOT TAGB WHERE FK_TANGE_ILAUFNR=TAGB.ILAUFNUMMER)=1 THEN 2
WHEN 2 AND (SELECT TAGB.FK_TAART_ILAUFNR FROM TANGEBOT TAGB WHERE FK_TANGE_ILAUFNR=TAGB.ILAUFNUMMER)=2 THEN 21
ELSE 0
END "/>
Unfortunatley it's not working. I always get an oracle error:
Code:
Caused by: java.sql.SQLException: ORA-00905: Missing kexword
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:145)
I'm using hibernate 3.1 and Oracle 10g Express Edition. Is it possible that my oracle version doesn't support the CASE??
Any help appreciated! Regards...
Angela