• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to apply case insestive on the Hibernate Query?

 
Rd Dari
Ranch Hand
Posts: 212
Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

below is the code using Like operator using hibernate. Can any one tell me how to apply case Insesitive on the below query.




Thanks in advanced!
 
chets patel
Ranch Hand
Posts: 77
Eclipse IDE Redhat Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use upper function of sql which convert into upper case. And while passing parameter to query, convert all variables into upper case.



For more reading on hibernate, read my blogpost http://morejava4u.blogspot.com/p/hibernate.html
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic