-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Case Insensitive Search:Restrictions.ilike or Restricions.eq
PostPosted: Wed Jan 19, 2011 10:55 am 
Newbie

Joined: Wed Jan 19, 2011 10:48 am
Posts: 1
Hi,
I've a doubt about Restrictions usage. What is the difference between next two declarations?

1. criteria.add(Restrictions.ilike("property", value, MatchMode.EXACT);

2. criteria.add(Restrictions.eq("property",value).ignoreCase());

Which is the correct way to do a case insensitive search with exact match?

Thank you!

Chiara


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.