- public Assurance(ResultSet result) throws SQLException {
- super();
- this.id = result.getInt("id");
- this.from = User.getById(result.getInt("from"));
- this.to = User.getById(result.getInt("to"));
- this.location = result.getString("location");
- this.method = result.getString("method");
- this.points = result.getInt("points");
- this.date = result.getString("date");
+ public Assurance(int id, User from, User to, String location, String method, int points, String date) {
+ this.id = id;
+ this.from = from;
+ this.to = to;
+ this.location = location;
+ this.method = method;
+ this.points = points;
+ this.date = date;
+