diff --git a/src/main/java/de/thm/arsnova/dao/CouchDBDao.java b/src/main/java/de/thm/arsnova/dao/CouchDBDao.java index da0095f19fa2730f86b0386938b898f4d1770529..fd98d5eced48dfbab0b52c0d403395ac018e6871 100644 --- a/src/main/java/de/thm/arsnova/dao/CouchDBDao.java +++ b/src/main/java/de/thm/arsnova/dao/CouchDBDao.java @@ -280,7 +280,8 @@ public class CouchDBDao implements IDatabaseDao { q.put("thresholdCorrectAnswers", question.getThresholdCorrectAnswers()); q.put("cvIsColored", question.getCvIsColored()); q.put("gridLineColor", question.getGridLineColor()); - + q.put("numberOfDots", question.getNumberOfDots()); + return q; } @@ -315,6 +316,7 @@ public class CouchDBDao implements IDatabaseDao { q.put("thresholdCorrectAnswers", question.getThresholdCorrectAnswers()); q.put("cvIsColored", question.getCvIsColored()); q.put("gridLineColor", question.getGridLineColor()); + q.put("numberOfDots", question.getNumberOfDots()); database.saveDocument(q); question.set_rev(q.getRev()); diff --git a/src/main/java/de/thm/arsnova/entities/Question.java b/src/main/java/de/thm/arsnova/entities/Question.java index 7b5f95381404d41f0fd57367f33fcf479266256f..0810d0de8f44d5895c82cabd7672eafe190d939f 100644 --- a/src/main/java/de/thm/arsnova/entities/Question.java +++ b/src/main/java/de/thm/arsnova/entities/Question.java @@ -61,6 +61,7 @@ public class Question { private int thresholdCorrectAnswers; private boolean cvIsColored; private String gridLineColor; + private int numberOfDots; public final String getType() { return type; @@ -365,6 +366,14 @@ public class Question { public void setGridLineColor(String gridLineColor) { this.gridLineColor = gridLineColor; } + + public int getNumberOfDots() { + return numberOfDots; + } + + public void setNubmerOfDots(int numberOfDots) { + this.numberOfDots = numberOfDots; + } @Override public final String toString() {