mirror of
https://github.com/google/nomulus.git
synced 2025-07-04 10:13:30 +02:00
Enable JpaTransactionManager in sandbox (#323)
* Enable JpaTransactionManager in sandbox
This commit is contained in:
parent
5e61adb396
commit
d00ade8ae0
1 changed files with 4 additions and 1 deletions
|
@ -16,6 +16,7 @@ package google.registry.model.transaction;
|
|||
|
||||
import static google.registry.config.RegistryEnvironment.ALPHA;
|
||||
import static google.registry.config.RegistryEnvironment.CRASH;
|
||||
import static google.registry.config.RegistryEnvironment.SANDBOX;
|
||||
|
||||
import com.google.appengine.api.utils.SystemProperty;
|
||||
import com.google.appengine.api.utils.SystemProperty.Environment.Value;
|
||||
|
@ -60,7 +61,9 @@ public class TransactionManagerFactory {
|
|||
|
||||
// TODO(shicong): Enable JpaTm for all environments and remove this function
|
||||
private static boolean shouldEnableJpaTm() {
|
||||
return RegistryEnvironment.get() == ALPHA || RegistryEnvironment.get() == CRASH;
|
||||
return RegistryEnvironment.get() == ALPHA
|
||||
|| RegistryEnvironment.get() == CRASH
|
||||
|| RegistryEnvironment.get() == SANDBOX;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue