Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Object Relational Mapping
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
paul wheaton
Liutauras Vilda
Ron McLeod
Sheriffs:
Jeanne Boyarsky
Devaka Cooray
Paul Clapham
Saloon Keepers:
Scott Selikoff
Tim Holloway
Piet Souris
Mikalai Zaikin
Frits Walraven
Bartenders:
Stephan van Hulst
Carey Brown
Forum:
Object Relational Mapping
how to use sql functions inside criteria?
shah rah
Ranch Hand
Posts: 124
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I need to comapare name from database(can have mixed case) and the name user has entered.
I need to do something like
select name from table where lower(name)='apple'.
I am using criteria
criteria.add(Expression.like("name", inputName.toLowerCase(),MatchMode.Anywhere));
How to use the LOWER sqlSERVER function inside Criteria?
Mark Spritzler
ranger
Posts: 17347
11
I like...
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
-
iOS Apps
How to Ask Questions the Smart Way FAQ
Consider Paul's
rocket mass heater
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
org.hibernate.exception.SQLGrammarException: could not execute query
Converting HSQL to Criteria
How to handle this large result set
Handling the criteria in a business layer
Difference in HQL and Criteria
More...