how to convert like %searchKey% to native query in spring boot jpa
问题 I'm trying to convert the following query to native query, I'm getting empty list while the query is returning 2 tuples following is the query : SELECT s.id AS shopID, s.shop_name AS shopName FROM shop s WHERE s.shop_name LIKE '%store%' ; following is the method I've created which is returning empty list while it's supposed to send a list containing two objects (this is the method of m repository) @Query(value = "SELECT \n" + " s.id AS shopID,\n" + " s.shop_name AS shopName \n" + "FROM\n" + "