E function ( E arg0 ) { persist ( arg0 ) ; flush ( ) ; return arg0 ; }
make an instance managed and persistent then synchronize the persistence context to the underlying database . delegates to entitymanager #persist object then #flush and finally returns the original source entity . helpful when setting up test data in a test : myentity entity = this.testentitymanager.persistandflush 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 E persist concode_elem_sep EntityManager getEntityManager concode_elem_sep void remove