This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package dev.joserg.util.jpa; | |
import static org.springframework.data.jpa.domain.Specification.allOf; | |
import static org.springframework.data.jpa.domain.Specification.anyOf; | |
import java.util.List; | |
import java.util.Optional; | |
import jakarta.annotation.Nonnull; | |
import jakarta.persistence.criteria.Root; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package dev.joserg.jpa; | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.Map.Entry; | |
import jakarta.persistence.criteria.CriteriaBuilder; | |
import jakarta.persistence.criteria.CriteriaQuery; | |
import jakarta.persistence.criteria.JoinType; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package dev.joserg.jpa; | |
import jakarta.persistence.EntityManager; | |
import org.jetbrains.annotations.Nullable; | |
import org.springframework.data.domain.Pageable; | |
import org.springframework.data.domain.Slice; | |
import org.springframework.data.domain.SliceImpl; | |
import org.springframework.data.jpa.domain.Specification; | |
import org.springframework.data.jpa.repository.support.JpaEntityInformation; | |
import org.springframework.data.jpa.repository.support.SimpleJpaRepository; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package dev.joserg.jpa; | |
import static org.springframework.data.domain.ScrollPosition.offset; | |
import java.util.function.Function; | |
import org.springframework.data.domain.Pageable; | |
import org.springframework.data.domain.ScrollPosition; | |
import org.springframework.data.domain.Slice; | |
import org.springframework.data.domain.SliceImpl; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package dev.joserg.jpa; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.function.Function; | |
import jakarta.persistence.criteria.CriteriaBuilder; | |
import jakarta.persistence.criteria.Expression; | |
import jakarta.persistence.criteria.Predicate; | |
import lombok.extern.slf4j.Slf4j; |