public < E extends Identifiable > E mergeEntity ( EntityManager em , E entity ) { requireArgument ( em != null , "The entity manager cannot be null." ) ; requireArgument ( entity != null , "The entity cannot be null." ) ; E ret = em . merge ( entity ) ; return ret ; }
Persists an entity to the database .