public static Criteria createCriteria(EntityManager entityManager, 
      Class<?> persistentClass) {
    """
	<p>
	Creates a new {@link Criteria} query for a entity class.
	</p>
	
	<p>
	Please note that the entity name is deduced from the unqualified class name.
	You should use {@link #createCriteria(EntityManager, String)}
	if you have changed the entity name by using the <code>name</code> attribute
	of the {@link Entity} annotation.
	</p>
	
	@param entityManager {@link EntityManager} for query creation
	@param persistentClass persistent class
	@return new {@link Criteria} query
    """
    errorIfClosed(entityManager);
    return new CriteriaImpl( entityManager, persistentClass.getSimpleName() );
  }
public static Criteria createCriteria(EntityManager entityManager, 
      Class<?> persistentClass) {
    errorIfClosed(entityManager);
    return new CriteriaImpl( entityManager, persistentClass.getSimpleName() );
  }
public static Criteria createCriteria ( EntityManager entityManager , Class < ? > persistentClass ) { errorIfClosed ( entityManager ) ; return new CriteriaImpl ( entityManager , persistentClass . getSimpleName ( ) ) ; }
<p>
Creates a new {@link Criteria} query for a entity class.
</p>

<p>
Please note that the entity name is deduced from the unqualified class name.
You should use {@link #createCriteria(EntityManager, String)}
if you have changed the entity name by using the <code>name</code> attribute
of the {@link Entity} annotation.
</p>

@param entityManager {@link EntityManager} for query creation
@param persistentClass persistent class
@return new {@link Criteria} query
<p > Creates a new { @link Criteria } query for a entity class . < / p >