1
0
mirror of https://github.com/google/nomulus synced 2026-01-04 20:24:22 +00:00

Enable JpaTransactionManager in sandbox (#323)

* Enable JpaTransactionManager in sandbox
This commit is contained in:
Shicong Huang
2019-10-31 14:23:38 -04:00
committed by GitHub
parent 5e61adb396
commit d00ade8ae0

View File

@@ -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;
}
/**