package edu.rpi.cs.yacs.models;

/**
 * Created by Mark Robinson on 9/24/16.
 */

public class Department {
    private int id = 0, school_id = 0;
    private String code = "", name = "";

    public int getId() {
        return id;
    }

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

    public int getSchool_id() {
        return school_id;
    }

    public void setSchool_id(int school_id) {
        this.school_id = school_id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

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

@@ -79,33 +79,166 @@
 */%0A%0A
-public class Department %7B
+import com.google.gson.annotations.Expose;%0Aimport com.google.gson.annotations.SerializedName;%0A%0Apublic class Department %7B%0A    @SerializedName(%22id%22)%0A    @Expose
 %0A   
@@ -250,188 +250,280 @@
 ate 
-int id = 0, school_id = 0;%0A    private String code = %22%22, name = %22%22;%0A%0A    public int getId() %7B%0A        return i
+Integer id;%0A%0A    @SerializedName(%22code%22)%0A    @Expose%0A    private String code;%0A%0A    @SerializedName(%22name%22)%0A    @Expose%0A    private String name;%0A%0A    @SerializedName(%22school_id%22)%0A    @Expose%0A    private Integer schoolI
 d;%0A
+%0A
     
-%7D%0A%0A    public void setId(int id) %7B%0A        this.id =
+/**%0A     *%0A     * @return%0A     * The
  id
-;
 %0A    
-%7D%0A
+ */
 %0A   
@@ -534,23 +534,20 @@
 lic 
-int getSchool_i
+Integer getI
 d() 
@@ -563,23 +563,16 @@
  return 
-school_
 id;%0A    
@@ -566,32 +566,86 @@
 turn id;%0A    %7D%0A%0A
+    /**%0A     *%0A     * @param id%0A     * The id%0A     */%0A
     public void 
@@ -651,29 +651,19 @@
  set
-School_id(int school_
+Id(Integer 
 id) 
@@ -681,95 +681,193 @@
 his.
-school_id = school_id;%0A    %7D%0A%0A    public String getCode() %7B%0A        return code;%0A    %7D%0A
+id = id;%0A    %7D%0A%0A    /**%0A     *%0A     * @return%0A     * The code%0A     */%0A    public String getCode() %7B%0A        return code;%0A    %7D%0A%0A    /**%0A     *%0A     * @param code%0A     * The code%0A     */
 %0A   
@@ -927,32 +927,86 @@
  = code;%0A    %7D%0A%0A
+    /**%0A     *%0A     * @return%0A     * The name%0A     */%0A
     public Strin
@@ -1043,24 +1043,82 @@
 ame;%0A    %7D%0A%0A
+    /**%0A     *%0A     * @param name%0A     * The name%0A     */%0A
     public v
@@ -1176,10 +1176,290 @@
 ;%0A    %7D%0A
-%7D
 %0A
+    /**%0A     *%0A     * @return%0A     * The schoolId%0A     */%0A    public Integer getSchoolId() %7B%0A        return schoolId;%0A    %7D%0A%0A    /**%0A     *%0A     * @param schoolId%0A     * The school_id%0A     */%0A    public void setSchoolId(Integer schoolId) %7B%0A        this.schoolId = schoolId;%0A    %7D%0A%7D

Modify Department Model