Package 

Class JpaFetchingEagerEntityJoinHandler

  • 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 with B using @OneToMany annotation and FetchType.EAGER, and A has a relationship with C using @OneToMany annotation and FetchType.LAZY. When we search for A, we retrieve A with just data from B, but not C.

    • Method Summary

      Modifier and Type Method Description
      Boolean supports(PropertyInfos propertyInfos)
      JoinInfo handle(PropertyInfos propertyInfos)
      • Methods inherited from class com.weedow.spring.data.search.join.handler.EntityJoinHandler

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JpaFetchingEagerEntityJoinHandler

        JpaFetchingEagerEntityJoinHandler(DataSearchContext dataSearchContext)
        Parameters:
        dataSearchContext - DataSearchContext
    • Method Detail

      • handle

         JoinInfo handle(PropertyInfos propertyInfos)