In the @Transactional annotation, the code supports two Propagation types: REQUIRED and REQUIRED_NEW. The only difference appears to be that REQUIRED_NEW starts a session, whereas REQUIRED assumes one is already started. The commit log / documentation did not help me understand which one I should use, under what circumstances. Can you help?
Thanks!
In the
@Transactionalannotation, the code supports two Propagation types:REQUIREDandREQUIRED_NEW. The only difference appears to be thatREQUIRED_NEWstarts a session, whereasREQUIREDassumes one is already started. The commit log / documentation did not help me understand which one I should use, under what circumstances. Can you help?Thanks!