Spring Data JPA find by embedded object property

前端 未结 4 1029
小蘑菇
小蘑菇 2020-12-02 09:29

I want to write a Spring Data JPA repository interface method signature that will let me find entities with a property of an embedded object in that entity. Does anyone know

4条回答
  •  清歌不尽
    2020-12-02 10:08

    The above - findByBookIdRegion() did not work for me. The following works with the latest release of String Data JPA:

    Page findByBookId_Region(Region region, Pageable pageable);
    

提交回复
热议问题