[Logo]
Forums Register Login
Hibernate query help
Hi,

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.

Thanks,
Can you please update the code snippet?
Hi,

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


Please help me to solve this issue.
Let's get him boys! We'll make him read this tiny ad!
Thread Boost - a very different sort of advertising
https://coderanch.com/t/674455/Thread-Boost-feature


This thread has been viewed 1141 times.

All times above are in ranch (not your local) time.
The current ranch time is
Apr 27, 2018 02:51:50.