This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes Hibernate query help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate query help" Watch "Hibernate query help" New topic
Author

Hibernate query help

jaisai vijay
Ranch Hand

Joined: Dec 17, 2009
Posts: 70
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,
Pradeep Kumar
Ranch Hand

Joined: Sep 08, 2006
Posts: 108
Can you please update the code snippet?


Thanks and Regards, Pradeep Kumar
SCJP 1.6, SCWCD 5.0
jaisai vijay
Ranch Hand

Joined: Dec 17, 2009
Posts: 70
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hibernate query help
 
Similar Threads
How to dynamically execute query under condition in Jasper Report (iReport)?
SQL query
request.getParameter()
SQL - Automatically reflecting the values of 2 columns in another column
owner field