used for updating entities in batch concode_field_sep Class<T> businessEntity concode_field_sep T find concode_elem_sep T find concode_elem_sep T save concode_elem_sep T update concode_elem_sep Session getOpenSession concode_elem_sep boolean delete concode_elem_sep List<T> findAll concode_elem_sep SessionFactory getSessionFactory
List < T > function ( List < T > arg0 , int arg1 ) { Session loc0 = getSessionFactory ( ) . getCurrentSession ( ) ; int loc1 = 0 ; for ( T loc2 : arg0 ) { loc0 . update ( loc2 ) ; if ( arg1 != 0 && ++ loc1 % arg1 == 0 ) { loc0 . flush ( ) ; loc0 . clear ( ) ; } } return arg0 ; }