-
- All Implemented Interfaces:
-
com.weedow.spring.data.search.join.handler.EntityJoinHandler
public final class JpaFetchingEagerEntityJoinHandler implements EntityJoinHandler
EntityJoinHandler implementation to fetch all fields (entity fields and nested fields included) with Join Annotation defining FetchType.EAGER.
Technically, it creates a
LEFT JOIN FETCH
in JPQL for Join Annotation with FetchType.EAGER.Example:
A
has a relationship withB
using@OneToMany
annotation andFetchType.EAGER
, andA
has a relationship withC
using@OneToMany
annotation andFetchType.LAZY
. When we search forA
, we retrieveA
with just data fromB
, but notC
.
-
-
Constructor Summary
Constructors Constructor Description JpaFetchingEagerEntityJoinHandler(DataSearchContext dataSearchContext)
-