Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;

Expand All @@ -103,4 +100,4 @@ private String promptPreview() {
if (promptMd == null) return "null";
return promptMd.length() > 20 ? promptMd.substring(0, 20) + "..." : promptMd;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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

/**
Expand Down
Loading