opencirclesolutions-wove commented on code in PR #2412:
URL: https://github.com/apache/causeway/pull/2412#discussion_r1611600296


##########
persistence/commons/src/main/java/org/apache/causeway/persistence/commons/integration/repository/RepositoryServiceDefault.java:
##########
@@ -120,7 +147,9 @@ public <T> T persist(final T domainObject) {
     @Override
     public <T> T persistAndFlush(final T object) {
         persist(object);
-        transactionService.flushTransaction();
+        if (!threadLocal.get().getOrDefault(object.getClass(), Boolean.FALSE)) 
{

Review Comment:
   Fixed



##########
persistence/commons/src/main/java/org/apache/causeway/persistence/commons/integration/repository/RepositoryServiceDefault.java:
##########
@@ -138,7 +167,9 @@ public void remove(final Object domainObject) {
     @Override
     public void removeAndFlush(final Object domainObject) {
         remove(domainObject);
-        transactionService.flushTransaction();
+        if (!threadLocal.get().getOrDefault(domainObject.getClass(), 
Boolean.FALSE)) {

Review Comment:
   Fixed



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@causeway.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to