Interface Root<X>

  • Type Parameters:
    X - the entity type referenced by the root
    All Superinterfaces:
    Expression<X>, FetchParent<Z,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.
    Java Persistence 2.0
    • Method Detail

      • getModel

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