Announcement Announcement Module
Collapse
No announcement yet.
spring-data-jpa and JpaRepository -> NO Join on OneToOne Mapping with Eager Fetching Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • spring-data-jpa and JpaRepository -> NO Join on OneToOne Mapping with Eager Fetching

    Hi,

    I use JpaRepository with an Entity ("Book") which has an OneToOne mapping to another entity ("BookComment" -fetch = FetchType.EAGER)

    When I call findAll (with paging) on the repository I see the sql select for the books and than several selects (for every found book a select on bookcomment).

    How can I achieve that there is only 1 call (select with join)???

    TIA

    Martin
Working...
X