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 2013/03/13 00:32:22 UTC

[3/38] git commit: ISIS-358: be able to delete non-versioned objects.

ISIS-358: be able to delete non-versioned objects.


Project: http://git-wip-us.apache.org/repos/asf/isis/repo
Commit: http://git-wip-us.apache.org/repos/asf/isis/commit/4f91460e
Tree: http://git-wip-us.apache.org/repos/asf/isis/tree/4f91460e
Diff: http://git-wip-us.apache.org/repos/asf/isis/diff/4f91460e

Branch: refs/heads/dan/ISIS-233-ro
Commit: 4f91460e5303990b5a267e7ef7a5febd7cdab63b
Parents: 1c11f87
Author: Dan Haywood <da...@apache.org>
Authored: Thu Mar 7 20:36:47 2013 +0000
Committer: Dan Haywood <da...@apache.org>
Committed: Thu Mar 7 20:36:47 2013 +0000

----------------------------------------------------------------------
 .../system/persistence/PersistenceSession.java     |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/isis/blob/4f91460e/core/runtime/src/main/java/org/apache/isis/core/runtime/system/persistence/PersistenceSession.java
----------------------------------------------------------------------
diff --git a/core/runtime/src/main/java/org/apache/isis/core/runtime/system/persistence/PersistenceSession.java b/core/runtime/src/main/java/org/apache/isis/core/runtime/system/persistence/PersistenceSession.java
index 665ee53..a4578b4 100644
--- a/core/runtime/src/main/java/org/apache/isis/core/runtime/system/persistence/PersistenceSession.java
+++ b/core/runtime/src/main/java/org/apache/isis/core/runtime/system/persistence/PersistenceSession.java
@@ -862,9 +862,6 @@ public class PersistenceSession implements Persistor, EnlistedObjectDirtying, To
 
             @Override
             public void execute() {
-                if (adapter.getVersion() == null) {
-                    throw new ObjectPersistenceException("Object to be deleted does not have a version (maybe it should be resolved first): " + adapter);
-                }
                 final DestroyObjectCommand command = objectStore.createDestroyObjectCommand(adapter);
                 getTransactionManager().addCommand(command);
             }