Commit c6b2bad6 authored by Andreas Gärtner's avatar Andreas Gärtner

Renamed points_unchecked to pointsUnchecked.

parent 65b430c8
......@@ -3,12 +3,12 @@ package de.thm.arsnova.connector.model;
public class IliasAnswer {
private String text;
private double points;
private double points_unchecked;
private double pointsUnchecked;
public IliasAnswer(String text, double points, double points_unchecked) {
public IliasAnswer(String text, double points, double pointsUnchecked) {
this.text = text;
this.points = points;
this.points_unchecked = points_unchecked;
this.pointsUnchecked = pointsUnchecked;
}
public String getText() {
......@@ -20,6 +20,6 @@ public class IliasAnswer {
}
public double getPointsUnchecked() {
return points_unchecked;
return pointsUnchecked;
}
}
......@@ -258,9 +258,9 @@ public class IliasConnectorDaoImpl implements UniRepDao {
final JdbcTemplate jdbcTemplate = new JdbcTemplate(dataSource);
return jdbcTemplate.query(
"SELECT answertext, points, NULL points_unchecked FROM qpl_a_sc WHERE question_fi = ? "
+ "UNION SELECT answertext, points, points_unchecked FROM qpl_a_mc "
+ "WHERE question_fi = ?",
"SELECT answertext, points, NULL pointsUnchecked FROM qpl_a_sc WHERE question_fi = ? "
+ "UNION SELECT answertext, points, points_unchecked as pointsUnchecked"
+ " FROM qpl_a_mc WHERE question_fi = ?",
new String[] {String.valueOf(questionId), String.valueOf(questionId)},
new RowMapper<IliasAnswer>() {
@Override
......@@ -268,7 +268,7 @@ public class IliasConnectorDaoImpl implements UniRepDao {
return new IliasAnswer(
resultSet.getString("answertext"),
resultSet.getDouble("points"),
resultSet.getDouble("points_unchecked")
resultSet.getDouble("pointsUnchecked")
);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment