Class SubmissionDao
java.lang.Object
me.nickhanson.codeforge.persistence.SubmissionDao
Data Access Object for Submission entities.
Provides methods to perform CRUD operations and custom queries.
- Author:
- Nick Hanson
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(Submission submission) getAll()listByChallengeId(Long challengeId) Lists all submissions associated with a specific challenge ID.listByChallengeIdAndUser(Long challengeId, String userId) Lists submissions for a specific challenge and user.voidsaveOrUpdate(Submission submission)
-
Constructor Details
-
SubmissionDao
public SubmissionDao()
-
-
Method Details
-
getById
-
getAll
-
saveOrUpdate
-
delete
-
listByChallengeId
Lists all submissions associated with a specific challenge ID.- Parameters:
challengeId- The ID of the challenge.- Returns:
- A list of submissions for the given challenge ID.
-
listByChallengeIdAndUser
Lists submissions for a specific challenge and user.- Parameters:
challengeId- The ID of the challenge.userId- The ID of the user.- Returns:
- A list of submissions for the given challenge ID and user ID.
-