@NamedQuery(name="assessmentModeById",query="select mode from courseassessmentmode mode where mode.key=:modeKey"),
@NamedQuery(name="assessmentModeById",query="select mode from courseassessmentmode mode where mode.key=:modeKey"),
@NamedQuery(name="assessmentModeByRepoEntry",query="select mode from courseassessmentmode mode where mode.repositoryEntry.key=:entryKey order by mode.begin desc")
@NamedQuery(name="assessmentModeByRepoEntry",query="select mode from courseassessmentmode mode inner join fetch mode.repositoryEntry v inner join fetch v.olatResource res where mode.repositoryEntry.key=:entryKey order by mode.begin desc")