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>

public interface Root<X> extends From<X,X>
A root type in the from clause. Query roots always reference entities.
Since:
Java Persistence 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