Change em.merge to em.persist