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