【发布时间】:2017-05-30 19:23:06
【问题描述】:
我使用这样的 Spring Data 使用 JPA 查询进行搜索:
我的接口仓库:
public interface AnnonceDao extends JpaRepository<Annonce, Integer> {
Page<Annonce> findByTitreContaining(String titre,Pageable page);
}
当我寻找像 Hello Friend 这样的东西时,我得到了所有已连接 Hello Friend 的实体,我也想要得到 Friend Hello 或任何包含 的实体>你好或朋友。我可以用作查询,感谢您的帮助。
【问题讨论】:
标签: spring-data