Created
November 10, 2010 00:07
-
-
Save alexzhan/670089 to your computer and use it in GitHub Desktop.
getHibernate find like search
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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