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/19 13:06:17 UTC
[19/24] 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/240b34d9
Tree: http://git-wip-us.apache.org/repos/asf/isis/tree/240b34d9
Diff: http://git-wip-us.apache.org/repos/asf/isis/diff/240b34d9
Branch: refs/heads/master
Commit: 240b34d9a66d5094a2d8ceb330a79521db52d430
Parents: a6df3da
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: Wed Oct 15 06:18:48 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/240b34d9/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);
}