aspose file tools*
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 Java 8 in Action this week in the Java 8 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
 
 
subject: making hibernate query [select] using null value
 
Similar Threads
Can use validator classes within action's validation methods?
Could not initialize class thats under WEB-INF
java.lang.ClassNotFoundException: javax.ejb.EJBHome
How to resolve"java.sql.SQLException: Network error IOException: Connection refused: connect"
Null Pointer Exception