From a020a233475063038775aae46d627e5ee5d005e2 Mon Sep 17 00:00:00 2001
From: Christoph Thelen <christoph.thelen@mni.thm.de>
Date: Thu, 26 Mar 2015 15:22:00 +0100
Subject: [PATCH] Remove _rev for equality since it prevents cache updates

---
 src/main/java/de/thm/arsnova/entities/Question.java | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/src/main/java/de/thm/arsnova/entities/Question.java b/src/main/java/de/thm/arsnova/entities/Question.java
index ac1dcccc7..c69f339c4 100644
--- a/src/main/java/de/thm/arsnova/entities/Question.java
+++ b/src/main/java/de/thm/arsnova/entities/Question.java
@@ -467,7 +467,6 @@ public class Question {
 		final int prime = 31;
 		int result = 1;
 		result = prime * result + ((_id == null) ? 0 : _id.hashCode());
-		result = prime * result + ((_rev == null) ? 0 : _rev.hashCode());
 		return result;
 	}
 
@@ -487,13 +486,6 @@ public class Question {
 		} else if (!_id.equals(other._id)) {
 			return false;
 		}
-		if (_rev == null) {
-			if (other._rev != null) {
-				return false;
-			}
-		} else if (!_rev.equals(other._rev)) {
-			return false;
-		}
 		return true;
 	}
 
-- 
GitLab