JPA Methodin javax.persistence.EntityManagervoid clear() Clear the persistence context, causing all managed entities to become detached. Changes made to entities that have not been flushed to the database will not be persisted. Since:JPA 1.0