Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Object Relational Mapping
OpenJPA _ findByExample with Like and Case Insensitive
Joined: Dec 07, 2006
Jan 23, 2013 12:30:52
I am querying a database using OpenJPA and passing in an object as the SQL where,
I am using this code to create the query
CriteriaQuery<Employee> q = cb.createQuery(Employee.class);
Employee example = new Employee();
But how can I to do a LIKE and a case Insensitive query on this query?
Thanks in Advance,
It is sorta covered in the
JavaRanch Style Guide
subject: OpenJPA _ findByExample with Like and Case Insensitive
About Named Queries
persistence.xml file for MS SQL Server 2000
J2EE - Entity & Entity Listeners usage
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013