eugenp / tutorials

Just Announced - "Learn Spring Security OAuth":

Home Page:http://bit.ly/github-lsso

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ordered parameters in LIKE queries

sinhapul opened this issue · comments

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..?

Hey @sinhapul,

Please include a link to the article you're referring to so we can check it.

Regards,
Team.

Closed due to lack of activity.