package nuclibook.models;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable(tableName = "action_log")
public class ActionLog {

    @DatabaseField(generatedId = true)
    private Integer id;

    @DatabaseField(canBeNull = false, foreign = true, columnName = "staff_id")
    private Staff staffID;

    public ActionLog(Staff staffID) {
        this.staffID = staffID;
    }

    public ActionLog() { //Empty constructor for ORMLite
    }

    public Staff getStaffID() {
        return staffID;
    }

    public void setStaffID(Staff staffID) {
        this.staffID = staffID;
    }

    public Integer getId() {
        return id;
    }
}

@@ -349,16 +349,163 @@
 affID;%0A%0A
+    @DatabaseField%0A    private Integer action;%0A%0A    @DatabaseField%0A    private Integer associatedID;%0A%0A    @DatabaseField%0A    private String note;%0A%0A
     publ
@@ -601,11 +601,20 @@
 () %7B
+%0A       
  //
+ 
 Empt
@@ -846,10 +846,480 @@
 ;%0A    %7D%0A
+%0A    public void setAction(Integer action) %7B%0A        this.action = action;%0A    %7D%0A%0A    public Integer getAction() %7B%0A        return this.action;%0A    %7D%0A%0A    public void setAssociatedID(Integer associatedID) %7B%0A        this.associatedID = associatedID;%0A    %7D%0A%0A    public Integer getAssociatedID() %7B%0A        return this.associatedID;%0A    %7D%0A%0A    public void setNote(String note) %7B%0A        this.note = note;%0A    %7D%0A%0A    public String getNote() %7B%0A        return this.note;%0A    %7D%0A%0A
 %7D%0A

Complete ActionLog model