This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Object Relational Mapping and the fly likes making hibernate query [select] using null value Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "making hibernate query [select] using null value" Watch "making hibernate query [select] using null value" New topic
Author

making hibernate query [select] using null value

Ahmed M. Omar
Ranch Hand

Joined: Mar 02, 2010
Posts: 43
i am using hibernate 3 all i want to achieve is to make a query using select and in the where clause there is a property may be null, if this property is null at run time it throws Null Pointer Exception at the statement that set this property please tell me how can i do it .

this the code :

and this is the exception i got:


the exception is thrown at line 9 in the code

regards
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: making hibernate query [select] using null value