ordered parameters in LIKE queries
sinhapul opened this issue · 2 comments
sinhapul commented
Issue: ordered parameters in LIKE queries in Spring-Data-Jpa 3.2.2
//@query("SELECT m FROM Movie m WHERE m.director LIKE %?#{escape([0])} escape ?#{escapeCharacter()}")
@query("SELECT m FROM Movie m WHERE m.director LIKE %:#{[0]}")
List searchByDirectorEndsWith(String director ,String actor );
If more than two parameters ((String director ,String actor ) with Like and other non-like , then how the @query will be formed..?
apeterlic commented
Hey @sinhapul,
Please include a link to the article you're referring to so we can check it.
Regards,
Team.
apeterlic commented
Closed due to lack of activity.