merge(entity) - JPA EntityManager's method
Method javax.persistence.EntityManager
T merge(
T entity
)
- 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 typePersistenceContextType.TRANSACTION
and there is no transaction
- Since:
- JPA 1.0