opencirclesolutions-wove commented on code in PR #2412: URL: https://github.com/apache/causeway/pull/2412#discussion_r1608146488
########## persistence/commons/src/main/java/org/apache/causeway/persistence/commons/integration/repository/RepositoryServiceDefault.java: ########## @@ -116,14 +119,24 @@ public <T> T persist(final T domainObject) { return domainObject; } - @Override public <T> T persistAndFlush(final T object) { persist(object); - transactionService.flushTransaction(); + if(!threadLocal.get().getOrDefault(object.getClass(), Boolean.FALSE)) { + transactionService.flushTransaction(); + } return object; } + @Override + public <T extends Class> void setBulkMode(final T aClass, final Boolean bulkMode) { 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