%Like% Query in spring JpaRepository

前端 未结 10 1667
南方客
南方客 2020-12-04 11:36

I would like to write a like query in JpaRepository but it is not returning anything :

LIKE \'%place%\'-its not working.

LIKE

10条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-04 11:58

    You can also implement the like queries using Spring Data JPA supported keyword "Containing".

    List findByPlaceContaining(String place);
    

提交回复
热议问题