I use Hibernate to ORM my Java application in an Oracle database (not something that deals with the database manufacturer, we can switch to another database one day) and I want to get objects from the database according to the ones provided by the user strings. For example, when searching for people, if a user searches for people who live in "fran", I want to be able to give it to people in San Francisco.
SQL is not my strong suit, and I prefer Hibernate Criteria building code for hard-coded strings, as they are. Can someone point me in the right direction how to do this in code, and if that is not possible, what does the hard SQL code look like?
Thank,
Yuval = 8 -)
sql select hibernate case-sensitive
Yuval Sep 23 '08 at 12:14 2008-09-23 12:14
source share