How do I use LIKE % in Hibernate. I want to use a SQL with LIKE % in my hbm.xml file. I have 2 queries which I am consolidating to 1.
LIKE %
hbm.xml
Use LIKE '%?%' and second parameter string to make the query. The field also should be a string type because like is used to compare strings.
LIKE '%?%'
like