make an instance managed and persistent . delegates to entitymanager #persist object then returns the original source entity . helpful when setting up test data in a test : myentity entity = this.testentitymanager.persist new myentity `` spring '' ; concode_field_sep EntityManagerFactory entityManagerFactory concode_field_sep E persistFlushFind concode_elem_sep void flush concode_elem_sep E find concode_elem_sep Object persistAndGetId concode_elem_sep T persistAndGetId concode_elem_sep E merge concode_elem_sep void clear concode_elem_sep E refresh concode_elem_sep void detach concode_elem_sep Object getId concode_elem_sep T getId concode_elem_sep EntityManager getEntityManager concode_elem_sep void remove concode_elem_sep E persistAndFlush
E function ( E arg0 ) { Assert . state ( getId ( arg0 ) == null , "srini_string" + arg0 . getClass ( ) . getName ( ) + "srini_string" ) ; getEntityManager ( ) . persist ( arg0 ) ; return arg0 ; }