Skip to content

Instantly share code, notes, and snippets.

@phillipuniverse
Forked from jfridye/transaction.java
Last active April 5, 2018 15:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phillipuniverse/00075a9dc4de7e9a5b6b3b6970f22868 to your computer and use it in GitHub Desktop.
Save phillipuniverse/00075a9dc4de7e9a5b6b3b6970f22868 to your computer and use it in GitHub Desktop.
class X {
@Autowired
private X me;
@Transactional
foo() {
}
@Transactional
bar() {
// SQL stuff
}
far() {
me.bar();
}
}
(new X()).far()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment