Skip to content

Instantly share code, notes, and snippets.

@eugenp
Created December 26, 2011 13:41
Show Gist options
  • Save eugenp/1521193 to your computer and use it in GitHub Desktop.
Save eugenp/1521193 to your computer and use it in GitHub Desktop.
Transaction configuration with Spring 3.1 - the transaction propagations
@Transactional( propagation = Propagation.REQUIRES_NEW )
public class Controller{
...
}
@Transactional( propagation = Propagation.MANDATORY )
public class Service{
...
}
@Transactional( propagation = Propagation.MANDATORY )
public class DAO{
...
}
@eugenp
Copy link
Author

eugenp commented Jan 29, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment