Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to use sql functions inside criteria?  RSS feed

 
shah rah
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to comapare name from database(can have mixed case) and the name user has entered.

I need to do something like


I am using criteria


How to use the LOWER sqlSERVER function inside Criteria?
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe in Expression or maybe it is actually the Criteria object that has a ignoreCase() method, or the like.

Mark
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!