Interface Root<X>

Type Parameters:
X - the entity type referenced by the root
All Superinterfaces:
Expression<X>, FetchParent<X,X>, From<X,X>, Path<X>, Selection<X>, TupleElement<X>
All Known Subinterfaces:
JpaDerivedRoot<T>, JpaRoot<T>
All Known Implementing Classes:
SqmCorrelatedRoot, SqmCorrelatedRootJoin, SqmCteRoot, SqmDerivedRoot, SqmRoot, SqmTreatedRoot

public interface Root<X> extends From<X,X>
A root type in the from clause. Query roots always reference entities.
Since:
2.0
  • Method Details

    • getModel

      EntityType<X> getModel()
      Return the metamodel entity corresponding to the root.
      Specified by:
      getModel in interface Path<X>
      Returns:
      metamodel entity corresponding to the root