i have java method saveandcalculate(person p), in object p firstly persisted hibernate via saveorupdate method. in same method, supplementary calculation done executing pl/sql procedure , procedure need p written database. since pl/sql procedure can called in unchained transactions, should annotate method saveandcalculate @transactional(propagation=never. how can force hibernate method saveorupdate been committed ?
you can execute session.flush() after session.saveorupdate force hibernate execute update or insert on database. in case data changes applied database stored proc should able see data.
Comments
Post a Comment