Fast Object Database for Java - with JPA/JDO support

persist(entity) - JPA EntityManager's method

Make an instance managed and persistent.
Parameters:
entity - entity instance
Throws:
EntityExistsException - if the entity already exists. (If the entity already exists, the EntityExistsException may be thrown when the persist operation is invoked, or the EntityExistsException or another PersistenceException may be thrown at flush or commit time.)
IllegalArgumentException - if the instance is not an entity
TransactionRequiredException - if invoked on a container-managed entity manager of type PersistenceContextType.TRANSACTION and there is no transaction
Since:
JPA 1.0