Created
December 26, 2011 13:41
-
-
Save eugenp/1521193 to your computer and use it in GitHub Desktop.
Transaction configuration with Spring 3.1 - the transaction propagations
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Transactional( propagation = Propagation.REQUIRES_NEW ) | |
| public class Controller{ | |
| ... | |
| } | |
| @Transactional( propagation = Propagation.MANDATORY ) | |
| public class Service{ | |
| ... | |
| } | |
| @Transactional( propagation = Propagation.MANDATORY ) | |
| public class DAO{ | |
| ... | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This gist is used in:
http://www.baeldung.com/2011/12/26/transaction-configuration-with-jpa-and-spring-3-1/