JPA Method
in javax.persistence.criteria.CriteriaDelete

Root<T> from(
  EntityType<T> entity
)


Create and add a query root corresponding to the entity that is the target of the delete. A CriteriaDelete object has a single root, the entity that is being deleted.
Parameters:
entity - metamodel entity representing the entity of type X
Return:
query root corresponding to the given entity
Since:
JPA 2.1