following is my code to call the database to find the substring "ello".
String queryString = "from ContentItem where singerName = '%"+searchString+"%' OR songName = '%"+searchString+"%'";
System.out.println(queryString);
Query query = session.createQuery(queryString);
return query.list();
the string output is
from ContentItem where singerName = '%ello%' OR songName = '%ello%'
it says Unexpected Token for %. How to make this possible to search substring inside those columns?
I'm working Hibernate inside Tapestry.