Class JpaSort.Path<T,S>

java.lang.Object
org.springframework.data.jpa.domain.JpaSort.Path<T,S>
Enclosing class:
JpaSort

public static class JpaSort.Path<T,S> extends Object
Value object to abstract a collection of Attributes.
Author:
Oliver Gierke
  • Method Details

    • dot

      public <A extends jakarta.persistence.metamodel.Attribute<S, U>, U> JpaSort.Path<S,U> dot(A attribute)
      Collects the given Attribute and returning a new JpaSort.Path pointing to the attribute type.
      Parameters:
      attribute - must not be null.
      Returns:
    • dot

      public <P extends jakarta.persistence.metamodel.PluralAttribute<S, ?, U>, U> JpaSort.Path<S,U> dot(P attribute)
      Collects the given PluralAttribute and returning a new JpaSort.Path pointing to the attribute type.
      Parameters:
      attribute - must not be null.
      Returns:
    • toString

      public String toString()
      Overrides:
      toString in class Object