Fast Object Database for Java - with JPA/JDO support

merge(entity) - JPA EntityManager's method

Method
javax.persistence.EntityManager
T merge(
  T entity
)

Merge the state of the given entity into the current persistence context.
Parameters:
entity - entity instance
Returns:
the managed instance that the state was merged to
Throws:
IllegalArgumentException - if instance is not an entity or is a removed entity
TransactionRequiredException - if invoked on a container-managed entity manager of type PersistenceContextType.TRANSACTION and there is no transaction
Since:
JPA 1.0