Jakarta Persistence (JPA) Method

Root<T> from(
  Class<T> entityClass
)


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:
entityClass - the entity class
Returns:
query root corresponding to the given entity.
Since:
Jakarta Persistence (JPA) 1.0