mirror of
https://github.com/hapifhir/hapi-fhir.git
synced 2025-02-18 10:55:22 +00:00
Avoid transaction isolation level not supported by Oracle
This commit is contained in:
parent
5d7142a972
commit
388bda1fec
@ -157,7 +157,7 @@ public class PersistedJpaBundleProvider implements IBundleProvider {
|
|||||||
|
|
||||||
TransactionTemplate txTemplate = new TransactionTemplate(myPlatformTransactionManager);
|
TransactionTemplate txTemplate = new TransactionTemplate(myPlatformTransactionManager);
|
||||||
txTemplate.setPropagationBehavior(TransactionDefinition.PROPAGATION_REQUIRED);
|
txTemplate.setPropagationBehavior(TransactionDefinition.PROPAGATION_REQUIRED);
|
||||||
txTemplate.setIsolationLevel(TransactionDefinition.ISOLATION_READ_UNCOMMITTED);
|
txTemplate.setIsolationLevel(TransactionDefinition.ISOLATION_READ_COMMITTED);
|
||||||
return txTemplate.execute(s -> {
|
return txTemplate.execute(s -> {
|
||||||
try {
|
try {
|
||||||
setSearchEntity(mySearchDao.findByUuid(myUuid));
|
setSearchEntity(mySearchDao.findByUuid(myUuid));
|
||||||
|
@ -633,7 +633,7 @@ public class SearchCoordinatorSvcImpl implements ISearchCoordinatorSvc {
|
|||||||
txTemplate.setPropagationBehavior(TransactionDefinition.PROPAGATION_REQUIRES_NEW);
|
txTemplate.setPropagationBehavior(TransactionDefinition.PROPAGATION_REQUIRES_NEW);
|
||||||
|
|
||||||
if (myCustomIsolationSupported) {
|
if (myCustomIsolationSupported) {
|
||||||
txTemplate.setIsolationLevel(TransactionDefinition.ISOLATION_READ_UNCOMMITTED);
|
txTemplate.setIsolationLevel(TransactionDefinition.ISOLATION_READ_COMMITTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
txTemplate.execute(new TransactionCallbackWithoutResult() {
|
txTemplate.execute(new TransactionCallbackWithoutResult() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user