Skip to content

Commit

Permalink
SAK-40817 Assignments regression from SAK-40742 (sakaiproject#6171)
Browse files Browse the repository at this point in the history
This change cleans up getSubmitterMap and instead of locking the table
it locks the Assignment until it has added all submissions. This change
is a bit smarter since it will only lock the assignment if a submission
is to be added.
  • Loading branch information
ern authored Oct 22, 2018
1 parent 6032664 commit ec11cca
Show file tree
Hide file tree
Showing 3 changed files with 102 additions and 135 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public class AssignmentSubmission {
@GenericGenerator(name = "uuid", strategy = "uuid2")
private String id;

@ManyToOne
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "ASSIGNMENT_ID")
private Assignment assignment;

Expand Down
Loading

0 comments on commit ec11cca

Please sign in to comment.