Class AbstractEntityViewAwareRepository.ExampleSpecification<T>

java.lang.Object
com.blazebit.persistence.spring.data.base.repository.AbstractEntityViewAwareRepository.ExampleSpecification<T>
All Implemented Interfaces:
Serializable, org.springframework.data.jpa.domain.Specification<T>
Enclosing class:
AbstractEntityViewAwareRepository<V,E,ID extends Serializable>

protected static class AbstractEntityViewAwareRepository.ExampleSpecification<T> extends Object implements org.springframework.data.jpa.domain.Specification<T>
Since:
1.2.0
Author:
Christian Beikov
See Also:
  • Field Summary

    Fields inherited from interface org.springframework.data.jpa.domain.Specification

    serialVersionUID
  • Constructor Summary

    Constructors
    Constructor
    Description
    ExampleSpecification(org.springframework.data.domain.Example<T> example, org.springframework.data.jpa.repository.query.EscapeCharacter escapeCharacter)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    jakarta.persistence.criteria.Predicate
    toPredicate(jakarta.persistence.criteria.Root<T> root, jakarta.persistence.criteria.CriteriaQuery<?> query, jakarta.persistence.criteria.CriteriaBuilder cb)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.data.jpa.domain.Specification

    and, or
  • Constructor Details

    • ExampleSpecification

      public ExampleSpecification(org.springframework.data.domain.Example<T> example, org.springframework.data.jpa.repository.query.EscapeCharacter escapeCharacter)
  • Method Details

    • toPredicate

      public jakarta.persistence.criteria.Predicate toPredicate(jakarta.persistence.criteria.Root<T> root, jakarta.persistence.criteria.CriteriaQuery<?> query, jakarta.persistence.criteria.CriteriaBuilder cb)
      Specified by:
      toPredicate in interface org.springframework.data.jpa.domain.Specification<T>