From the Transaction management for @Sql section of the Spring Reference Manual:
If the algorithms used by
SqlScriptsTestExecutionListener
to detect aDataSource
andPlatformTransactionManager
and infer the transaction semantics do not suit your needs, you may specify explicit names via thedataSource
andtransactionManager
attributes of@SqlConfig
.
For example:
@SqlGroup({ @Sql(scripts = "script1.sql", config = @SqlConfig(dataSource = "dataSource1", transactionManager = "txMgr1")), @Sql(scripts = "script2.sql", config = @SqlConfig(dataSource = "dataSource2", transactionManager = "txMgr2")) })
Regards,
Sam (author of the Spring TestContext Framework)
Related Posts:
- :wq! command in vim
- Understanding The Modulus Operator %
- Understanding the main method of python [duplicate]
- ping response “Request timed out.” vs “Destination Host unreachable”
- What does “:=” mean in Pseudocode? [closed]
- Why do we need virtual functions in C++?
- Eclipse IDE for Java – Full Dark Theme
- Amazon Linux: apt-get: command not found
- What does the Java assert keyword do, and when should it be used?
- How to resolve “The requested URL was rejected. Please consult with your administrator.”
- Difference between binary semaphore and mutex
- Python Logic of ListNode in Leetcode
- What is the difference between a strongly typed language and a statically typed language?
- Error in Python script “Expected 2D array, got 1D array instead:”?
- segmentation fault 11 in C++ on Mac
- How to append text to a text file in C++?
- What is the meaning of t=”shared” in a formula element?
- MySQL Every derived table must have its own alias
- How to print out a backslash in LaTeX
- Echo newline in Bash prints literal \n
- Proper shebang for Python script
- AttributeError: can’t set attribute
- How to kill a running Spark application?
- Log to the base 2 in python
- fix java.net.SocketTimeoutException: Read timed out
- What does it mean by word size in computer?
- Python setup.py develop vs install
- Hidden field “ufprt” being added to Razor Umbraco Form – Why?
- Raise to power in R
- APDU command to read Track1/track2 data from NFC card and MobileApp
- PHP – Failed to open stream : No such file or directory
- How to extract the substring between two markers?
- Even though JRE 8 is installed on my MAC -” No Java Runtime present,requesting to install ” gets displayed in terminal
- What fonts can I use with pygame.font.Font?
- CSS Box Shadow Bottom Only
- How to squash all git commits into one?
- how to fix Javac invalid flag error?
- PHP & MySQL: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given
- “Insert if not exists” statement in SQLite
- Web API Error – This request has been blocked; the content must be served over HTTPS
- What is the “N+1 selects problem” in ORM (Object-Relational Mapping)?
- HTML Best Practices: Should I use ’ or the special keyboard shortcut?
- What is runtime in context of Python? What does it consist of?
- mount.nfs: requested NFS version or transport protocol is not supported
- How do you get the file size in C#?
- how to use svm in Weka Classsifier?
- MIPS ‘nor’ usage in code
- How can I center
- into a div?
- LaTeX table too wide. How to make it fit?
- R Markdown – changing font size and font type in html output
- git add only modified changes and ignore untracked files
- HTTP Error 404.3-Not Found in IIS 7.5
- What is the difference between procedural programming and functional programming?
- Multiplying a register value by a constant in MIPS?
- What’s the use of the staging area in Git?
- Getting DOM element value using pure JavaScript
- What is the difference between lemmatization vs stemming?
- Instagram how to get my user id from username?
- Procedural and non-procedural query language difference
- COM object that has been separated from its underlying RCW cannot be used
- Swift 2: !, ? -” Value of optional type “…” not unwrapped”
- What is a .meta file and why does Unity create them for all of my assets?
- Center div on the middle of screen [duplicate]
- Which function grows faster, exponential or factorial?
- How to calculate Internet checksum?
- How to get the vector between two vectors?
- Brackets.io in built support for TypeScript
- XML Error: Extra content at the end of the document
- Error: You need to include some adapter that implements __karma__.start method
- ggplot facet_wrap: At least one layer must contain all variables used for facetting
- Child theme on style.min.css
- Refresh admin page after woocommerce order received
- jquery anchor effect does not work properly
- Can I make the post type value dynamic in ajax.php in wordpress
- Posts feed number of posts
- Add link to php field text on wordpress form
- To remove rendering of menus and header, plugin or theme?
- How do I deal with a compromised server?
- Something is burning in the server room; how can I quickly identify what it is?
- Finding out what user Apache is running as?
- Do systemd unit files have to be reloaded when modified?
- What is a glue record?
- How do I convert a .cer certificate to .pem?
- Run Oracle SQL script and exit from sqlplus.exe via command prompt
- Show full process name in top
- How do you do load testing and capacity planning for web sites?
- What is a good SSH server to use on Windows? [closed]
- In systemd, what’s the difference between After= and Requires=?
- Windows Server restart / shutdown history
- How do I set the global PATH environment variable on OS X?
- nmap find all alive hostnames and IPs in LAN
- Should CNAME Be Used For Subdomains?
- How do I create user accounts from the Terminal in Mac OS X 10.5?
- How to get a .pem file from ssh key pair?
- How to inspect remote SMTP server’s TLS certificate?
- Choosing between meaningful and meaningless hostnames [closed]
- logrotating files in a directories and its subdirectories
- Multiple TXT fields for same subdomain
- How to restart Nginx on Mac OS X?
- Do SPF Records For Primary Domain apply to subdomains?