package pingis.entities;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.util.UUID;

/**
 * Created by dwarfcrank on 7/28/17.
 */
@Entity
public class TmcSubmission {
    @Id
    private UUID id;

    private Integer exitCode;
    private String stderr;
    private String stdout;
    private TmcSubmissionStatus status;
    private String testOutput;
    private String validations;
    private String vmLog;

    public UUID getId() {
        return id;
    }

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

    public Integer getExitCode() {
        return exitCode;
    }

    public void setExitCode(Integer exitCode) {
        this.exitCode = exitCode;
    }

    public String getStderr() {
        return stderr;
    }

    public void setStderr(String stderr) {
        this.stderr = stderr;
    }

    public String getStdout() {
        return stdout;
    }

    public void setStdout(String stdout) {
        this.stdout = stdout;
    }

    public TmcSubmissionStatus getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = TmcSubmissionStatus.valueOf(status.toUpperCase());
    }

    public void setStatus(TmcSubmissionStatus status) {
        this.status = status;
    }

    public String getTestOutput() {
        return testOutput;
    }

    public void setTestOutput(String testOutput) {
        this.testOutput = testOutput;
    }

    public String getValidations() {
        return validations;
    }

    public void setValidations(String validations) {
        this.validations = validations;
    }

    public String getVmLog() {
        return vmLog;
    }

    public void setVmLog(String vmLog) {
        this.vmLog = vmLog;
    }
}

@@ -48,125 +48,9 @@
 nce.
-Entity;%0Aimport javax.persistence.GeneratedValue;%0Aimport javax.persistence.GenerationType;%0Aimport javax.persistence.Id
+*
 ;%0Aim
@@ -208,24 +208,34 @@
 er exitCode;
+%0A%0A    @Lob
 %0A    private
@@ -245,24 +245,34 @@
 ring stderr;
+%0A%0A    @Lob
 %0A    private
@@ -283,24 +283,25 @@
 ing stdout;%0A
+%0A
     private 
@@ -323,24 +323,34 @@
 atus status;
+%0A%0A    @Lob
 %0A    private
@@ -364,24 +364,34 @@
  testOutput;
+%0A%0A    @Lob
 %0A    private
@@ -406,24 +406,34 @@
 validations;
+%0A%0A    @Lob
 %0A    private

Annotate string fields in TmcSubmission with @Lob to fix column size issues.