Joined: Wed Sep 29, 2004 10:10 am Posts: 13 Location: Washington D.C. USA
|
[b]Hibernate version:[/b]
2.1
[b]Mapping documents:[/b]
N/A
[b]Code between sessionFactory.openSession() and session.close():[/b]
result = session.createCriteria(tableA.class)
.add(Expression.eq("columnB", null))
.list();
[b]Full stack trace of any exception that occurs:[/b]
N/A
[b]Name and version of the database you are using:[/b]
Oracle 9i
I have a table A with columnB which is nullable. I want to write a Criteria Query which will fetch all records of tableA with null columnB. The value can be either null or never assigned. Please let me know what do I need to change ?
Thank you.
Ram Mahajan
|
|