diff --git a/src/main/java/me/nickhanson/codeforge/entity/Challenge.java b/src/main/java/me/nickhanson/codeforge/entity/Challenge.java index e58fdab..143d770 100644 --- a/src/main/java/me/nickhanson/codeforge/entity/Challenge.java +++ b/src/main/java/me/nickhanson/codeforge/entity/Challenge.java @@ -49,14 +49,12 @@ public class Challenge { /** * A short description or blurb about the Challenge. */ - @Lob // Maps to a large object column for storing long text @Column(name = "blurb", columnDefinition = "TEXT", nullable = true) // Maps to a column that can be null private String blurb; /** * The full prompt of the Challenge in Markdown format. */ - @Lob // Maps to a large object column for storing long text @Column(name = "prompt_md", columnDefinition = "TEXT", nullable = true) // Maps to a column that can be null private String promptMd; @@ -81,7 +79,6 @@ public class Challenge { /** * The expected answer used by the evaluator for MVP. */ - @Lob @Column(name = "expected_answer", columnDefinition = "TEXT") private String expectedAnswer; @@ -103,4 +100,4 @@ private String promptPreview() { if (promptMd == null) return "null"; return promptMd.length() > 20 ? promptMd.substring(0, 20) + "..." : promptMd; } -} \ No newline at end of file +} diff --git a/src/main/java/me/nickhanson/codeforge/entity/Submission.java b/src/main/java/me/nickhanson/codeforge/entity/Submission.java index ba51879..1b06da4 100644 --- a/src/main/java/me/nickhanson/codeforge/entity/Submission.java +++ b/src/main/java/me/nickhanson/codeforge/entity/Submission.java @@ -51,9 +51,9 @@ public class Submission { /** * Optional solution code associated with the submission. - * This field is a large object (LOB) to accommodate potentially lengthy code submissions. + * This field is stored in a TEXT column to accommodate potentially lengthy code submissions. */ - @Lob + @Column(name = "code", columnDefinition = "TEXT") private String code; // optional solution text for future use /**