Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ARSnova Backend
Manage
Activity
Members
Labels
Plan
Issues
27
Issue boards
Milestones
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Privacy
Imprint
Contact
Snippets
Groups
Projects
Show more breadcrumbs
ARSnova
ARSnova Backend
Commits
9864756f
Commit
9864756f
authored
10 years ago
by
Felix Schmidt
Browse files
Options
Downloads
Patches
Plain Diff
Attribute 'numberOfDots' is stored in database.
parent
68e70b59
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/de/thm/arsnova/dao/CouchDBDao.java
+3
-1
3 additions, 1 deletion
src/main/java/de/thm/arsnova/dao/CouchDBDao.java
src/main/java/de/thm/arsnova/entities/Question.java
+9
-0
9 additions, 0 deletions
src/main/java/de/thm/arsnova/entities/Question.java
with
12 additions
and
1 deletion
src/main/java/de/thm/arsnova/dao/CouchDBDao.java
+
3
−
1
View file @
9864756f
...
@@ -280,7 +280,8 @@ public class CouchDBDao implements IDatabaseDao {
...
@@ -280,7 +280,8 @@ public class CouchDBDao implements IDatabaseDao {
q
.
put
(
"thresholdCorrectAnswers"
,
question
.
getThresholdCorrectAnswers
());
q
.
put
(
"thresholdCorrectAnswers"
,
question
.
getThresholdCorrectAnswers
());
q
.
put
(
"cvIsColored"
,
question
.
getCvIsColored
());
q
.
put
(
"cvIsColored"
,
question
.
getCvIsColored
());
q
.
put
(
"gridLineColor"
,
question
.
getGridLineColor
());
q
.
put
(
"gridLineColor"
,
question
.
getGridLineColor
());
q
.
put
(
"numberOfDots"
,
question
.
getNumberOfDots
());
return
q
;
return
q
;
}
}
...
@@ -315,6 +316,7 @@ public class CouchDBDao implements IDatabaseDao {
...
@@ -315,6 +316,7 @@ public class CouchDBDao implements IDatabaseDao {
q
.
put
(
"thresholdCorrectAnswers"
,
question
.
getThresholdCorrectAnswers
());
q
.
put
(
"thresholdCorrectAnswers"
,
question
.
getThresholdCorrectAnswers
());
q
.
put
(
"cvIsColored"
,
question
.
getCvIsColored
());
q
.
put
(
"cvIsColored"
,
question
.
getCvIsColored
());
q
.
put
(
"gridLineColor"
,
question
.
getGridLineColor
());
q
.
put
(
"gridLineColor"
,
question
.
getGridLineColor
());
q
.
put
(
"numberOfDots"
,
question
.
getNumberOfDots
());
database
.
saveDocument
(
q
);
database
.
saveDocument
(
q
);
question
.
set_rev
(
q
.
getRev
());
question
.
set_rev
(
q
.
getRev
());
...
...
This diff is collapsed.
Click to expand it.
src/main/java/de/thm/arsnova/entities/Question.java
+
9
−
0
View file @
9864756f
...
@@ -61,6 +61,7 @@ public class Question {
...
@@ -61,6 +61,7 @@ public class Question {
private
int
thresholdCorrectAnswers
;
private
int
thresholdCorrectAnswers
;
private
boolean
cvIsColored
;
private
boolean
cvIsColored
;
private
String
gridLineColor
;
private
String
gridLineColor
;
private
int
numberOfDots
;
public
final
String
getType
()
{
public
final
String
getType
()
{
return
type
;
return
type
;
...
@@ -365,6 +366,14 @@ public class Question {
...
@@ -365,6 +366,14 @@ public class Question {
public
void
setGridLineColor
(
String
gridLineColor
)
{
public
void
setGridLineColor
(
String
gridLineColor
)
{
this
.
gridLineColor
=
gridLineColor
;
this
.
gridLineColor
=
gridLineColor
;
}
}
public
int
getNumberOfDots
()
{
return
numberOfDots
;
}
public
void
setNubmerOfDots
(
int
numberOfDots
)
{
this
.
numberOfDots
=
numberOfDots
;
}
@Override
@Override
public
final
String
toString
()
{
public
final
String
toString
()
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment