I'm trying to select all rows from a table where a particular column IS
NULL.
If I include the following:

criteria.add((String)column_name, (String)column_name + " IS NULL",
(Object)Criteria.CUSTOM);

I get:
java.lang.reflect.InvocationTargetException:  java.sql.EQLException:
ORA-00907: missing right parenthesis


The explicit cast is necessary, otherwise the compiler can't resolve
between:
criteria.add(String, String, Object)
or
criteria.add(String, Object, SqlEnum)

Any suggestions?


-------------------------------------------
Robert D. Morse
[EMAIL PROTECTED]
PGP Key:  D9C4AA6A
PGP Finger Print:  ED56 DEEA 95CF AC99 C2B0  77D4 7D92 ACCA D9C4 AA6A


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to