Commit 62fdc1e2 authored by Andreas Gärtner's avatar Andreas Gärtner

Changed type of points in IliasQuestion to double.

parent 9a30435d
......@@ -5,7 +5,7 @@ import java.util.List;
public class IliasQuestion {
private int id;
private int type;
private int points;
private double points;
private String title;
private String description;
private String text;
......@@ -27,10 +27,10 @@ public class IliasQuestion {
this.type = type;
}
public int getPoints() {
public double getPoints() {
return points;
}
public void setPoints(int points) {
public void setPoints(double points) {
this.points = points;
}
......
......@@ -114,7 +114,7 @@ public class IliasConnectorDaoImpl implements UniRepDao {
final IliasQuestion q = new IliasQuestion();
q.setDescription(resultSet.getString("description"));
q.setId(resultSet.getInt("question_id"));
q.setPoints(resultSet.getInt("points"));
q.setPoints(resultSet.getDouble("points"));
q.setText(resultSet.getString("question_text"));
q.setTimestamp(resultSet.getInt("tstamp"));
q.setTitle(resultSet.getString("title"));
......
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