The moose likes Object Relational Mapping and the fly likes how to use sql functions inside criteria? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Object Relational Mapping
Reply Bookmark "how to use sql functions inside criteria?" Watch "how to use sql functions inside criteria?" New topic
Author

how to use sql functions inside criteria?

shah rah
Ranch Hand

Joined: Jan 04, 2007
Posts: 124
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

Joined: Feb 05, 2001
Posts: 16622

I believe in Expression or maybe it is actually the Criteria object that has a ignoreCase() method, or the like.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
 
subject: how to use sql functions inside criteria?
 
Threads others viewed
Difference in HQL and Criteria
How to handle this large result set
Converting HSQL to Criteria
Handling the criteria in a business layer
org.hibernate.exception.SQLGrammarException: could not execute query
MyEclipse, The Clear Choice