inserts an entity and commits concode_field_sep EntityManagerFactory emFactory concode_elem_sep Class<T> entityClass concode_elem_sep EntityManager _entityManager concode_field_sep EntityManagerFactory entityManagerFactory concode_elem_sep EntityManager entityManager concode_elem_sep String persistenceUnitName concode_elem_sep boolean eraseById concode_elem_sep T findById concode_elem_sep List<T> findAll
T function ( T arg0 ) { if ( arg0 == null ) { throw new IllegalArgumentException ( ) ; } EntityManager loc0 = entityManager ( ) ; EntityTransaction loc1 = loc0 . getTransaction ( ) ; loc1 . begin ( ) ; loc0 . persist ( arg0 ) ; loc1 . commit ( ) ; loc0 . close ( ) ; return arg0 ; }