mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-06 16:34:18 +00:00
#1240 - ENH: Add support for @Transactional skipCache and label
This commit is contained in:
1 parent
51d2e4c600
commit
bce745e88d
2 files changed
+41
No files matched your search
@@ -849,6 +849,13 @@ public final class DefaultServer implements SpiServer, SpiEbeanServer {
|
||||
|
||||
private void initNewTransaction(SpiTransaction transaction, TxScope txScope) {
|
||||
|
||||
if (txScope.isSkipCache()) {
|
||||
transaction.setSkipCache(true);
|
||||
}
|
||||
String label = txScope.getLabel();
|
||||
if (label != null) {
|
||||
transaction.setLabel(label);
|
||||
}
|
||||
ProfileLocation profileLocation = txScope.getProfileLocation();
|
||||
if (profileLocation != null) {
|
||||
transaction.setProfileLocation(profileLocation);
|
||||
|
||||
Reference in new issue
Block a user