You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2014/10/16 14:56:51 UTC
[2/2] git commit: ISIS-864: guard to NOT persist commands if objects
are dirtied as side-effect of 'seed' services (as Estatio and the security
module both use).
ISIS-864: guard to NOT persist commands if objects are dirtied as side-effect of 'seed' services (as Estatio and the security module both use).
Project: http://git-wip-us.apache.org/repos/asf/isis/repo
Commit: http://git-wip-us.apache.org/repos/asf/isis/commit/f89e1e62
Tree: http://git-wip-us.apache.org/repos/asf/isis/tree/f89e1e62
Diff: http://git-wip-us.apache.org/repos/asf/isis/diff/f89e1e62
Branch: refs/heads/master
Commit: f89e1e6279136529f87f244060b28c673275e529
Parents: 7f92b85
Author: Dan Haywood <da...@haywood-associates.co.uk>
Authored: Wed Oct 15 00:35:30 2014 +0100
Committer: Dan Haywood <da...@haywood-associates.co.uk>
Committed: Thu Oct 16 12:55:40 2014 +0100
----------------------------------------------------------------------
.../isis/core/runtime/system/transaction/IsisTransaction.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/isis/blob/f89e1e62/core/runtime/src/main/java/org/apache/isis/core/runtime/system/transaction/IsisTransaction.java
----------------------------------------------------------------------
diff --git a/core/runtime/src/main/java/org/apache/isis/core/runtime/system/transaction/IsisTransaction.java b/core/runtime/src/main/java/org/apache/isis/core/runtime/system/transaction/IsisTransaction.java
index dfb1925..f98c804 100644
--- a/core/runtime/src/main/java/org/apache/isis/core/runtime/system/transaction/IsisTransaction.java
+++ b/core/runtime/src/main/java/org/apache/isis/core/runtime/system/transaction/IsisTransaction.java
@@ -745,7 +745,7 @@ public class IsisTransaction implements TransactionScopedComponent {
// ensure that any changed objects means that the command should be persisted
final Set<ObjectAdapter> changedAdapters = findChangedAdapters(changedObjectProperties);
- if(!changedAdapters.isEmpty()) {
+ if(!changedAdapters.isEmpty() && command.getMemberIdentifier() != null) {
command.setPersistHint(true);
}