-
Feb 28th, 2013, 03:33 AM
#1
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules