package fi.tekislauta.models;

import fi.tekislauta.db.Database;

import javax.xml.crypto.Data;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.*;

public class Board extends Result {

    private int id;
    private String name;
    private String abbreviation;
    private String description;

    public Board(int id, String name, String abbreviation, String description) {
        super(null);
        this.id = id;
        this.name = name;
        this.abbreviation = abbreviation;
        this.description = description;
    }

    public Board() {
        super(null);
    }


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAbbreviation() {
        return abbreviation;
    }

    public void setAbbreviation(String abbreviation) {
        this.abbreviation = abbreviation;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}

@@ -251,19 +251,23 @@
 private 
-i
+I
 nt
+eger
  id;%0A   
@@ -585,32 +585,270 @@
 ription;%0A    %7D%0A%0A
+    // Nullify all member for a clean JSON object%0A    public void setError(String e) %7B%0A        this.id = null;%0A        this.name = null;%0A        this.abbreviation = null;%0A        this.description = null;%0A        super.setError(e);%0A    %7D%0A%0A
     public Board
@@ -880,17 +880,16 @@
 %0A    %7D%0A%0A
-%0A
     publ

Tweak setError