persisting existing entity , should throws entityexistsexception concode_field_sep UserTransaction tx concode_elem_sep EntityManager em concode_field_sep String failInFirstCall concode_elem_sep Employee createEmployee concode_elem_sep int[] getEmployeeIDsNoEM concode_elem_sep String failAfterCalls concode_elem_sep String failInSecondCall concode_elem_sep void addEmployee
void function ( ) { Employee loc0 = em . find ( Employee . class , 1212 ) ; if ( loc0 == null ) { loc0 = createEmployee ( "srini_string" , "srini_string" , 1212 ) ; em . persist ( loc0 ) ; em . flush ( ) ; } em . persist ( createEmployee ( loc0 . getName ( ) , loc0 . getAddress ( ) , loc0 . getId ( ) ) ) ; }