Skip to content

Instantly share code, notes, and snippets.

@alexzhan
Created November 10, 2010 00:07
Show Gist options
  • Save alexzhan/670089 to your computer and use it in GitHub Desktop.
Save alexzhan/670089 to your computer and use it in GitHub Desktop.
getHibernate find like search
Object[] objs = new Object[]{"%" + keyword.toLowerCase() + "%", category, region};
List<SnVideo> snVideos = videoDAO.getHibernateTemplate().find(" from SnVideo where lower(name) LIKE ? and lower(category)= ? and lower(region)= ?",objs);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment