• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

hibernate criteria

 
Amirtharaj Chinnaraj
Ranch Hand
Posts: 241
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi guys

i want to know when a empty string and string containing only spaces is given for
a restriction property in using criteria

so i started writing a code like this below

but what iam getting is its loading all the records in table inspite of matching records




the list ls contains 7 objects actually its loading all the objects in from table no record in my table contains empty string in the name
column

looking for your replies
thanks
amir

 
Bhavesh Dak
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried this out it is not happening in my case.

Can you please provide the hbm in which you are facing this problem?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic