I have a situation where I need to check values against null. I have three columns(declared as NUMBER in database) need to write a select query in hql. I was trying set query strings some times there will be null value when there is a null value it throws me null pointer exception.
please help me in this.
Joined: Sep 08, 2006
Can you please update the code snippet?
Thanks and Regards, Pradeep Kumar
SCJP 1.6, SCWCD 5.0
Joined: Dec 17, 2009
Here is the sample code and I declare id2 and id3 as null here for example some times there might be a value but my problem is in this scenario