Fix some remaining issues from the Spring migration #20
@ -4,6 +4,7 @@ import com.querydsl.core.BooleanBuilder;
|
||||
import com.querydsl.core.types.Predicate;
|
||||
import com.querydsl.core.types.dsl.BooleanExpression;
|
||||
import com.querydsl.jpa.impl.JPAQuery;
|
||||
import jakarta.transaction.Transactional;
|
||||
import se.su.dsv.scipro.system.Pageable;
|
||||
import se.su.dsv.scipro.milestones.dataobjects.Milestone;
|
||||
import se.su.dsv.scipro.milestones.dataobjects.MilestoneActivityTemplate;
|
||||
@ -54,6 +55,7 @@ public class MilestoneServiceImpl extends AbstractServiceImpl<Milestone, Long> i
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional
|
||||
public void setConfirmed(Project project, MilestoneActivityTemplate activity, boolean confirmed) {
|
||||
if (confirmed) {
|
||||
for (MilestoneActivityTemplate earlierActivity : getEarlierIncompleteProjectMilestoneActivities(project, activity)) {
|
||||
@ -84,6 +86,7 @@ public class MilestoneServiceImpl extends AbstractServiceImpl<Milestone, Long> i
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional
|
||||
public void setConfirmed(Project project, User student, MilestoneActivityTemplate activity, boolean confirmed) {
|
||||
|
||||
if (!project.hasModule(ProjectModule.MILESTONES)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user