Add missing @Bean definition

This commit is contained in:
Andreas Svanberg 2024-10-28 14:18:41 +01:00
parent c7a213baca
commit 676e6258e3
2 changed files with 13 additions and 0 deletions
war/src/main/java/se/su/dsv/scipro/war

@ -110,6 +110,8 @@ import se.su.dsv.scipro.nonworkperiod.NonWorkDayPeriodServiceImpl;
import se.su.dsv.scipro.notes.NoteServiceImpl;
import se.su.dsv.scipro.notifications.NotificationController;
import se.su.dsv.scipro.notifications.NotificationControllerImpl;
import se.su.dsv.scipro.notifications.NotificationEventRepository;
import se.su.dsv.scipro.notifications.NotificationEventServiceImpl;
import se.su.dsv.scipro.notifications.NotificationService;
import se.su.dsv.scipro.notifications.NotificationServiceImpl;
import se.su.dsv.scipro.notifications.Notifications;
@ -1023,4 +1025,9 @@ public class CoreConfig {
public CommentThreadServiceImpl commentThreadService(CommentThreadRepo commentThreadRepository) {
return new CommentThreadServiceImpl(commentThreadRepository);
}
@Bean
public NotificationEventServiceImpl notificationEventService(NotificationEventRepository notificationEventRepository) {
return new NotificationEventServiceImpl(notificationEventRepository);
}
}

@ -28,6 +28,7 @@ import se.su.dsv.scipro.match.FirstMeetingRepositoryImpl;
import se.su.dsv.scipro.match.IdeaRepositoryImpl;
import se.su.dsv.scipro.match.TargetRepositoryImpl;
import se.su.dsv.scipro.milestones.MilestoneActivityTemplateRepositoryImpl;
import se.su.dsv.scipro.notifications.NotificationEventRepositoryImpl;
import se.su.dsv.scipro.peer.CommentThreadRepoImpl;
import se.su.dsv.scipro.peer.PeerRequestRepositoryImpl;
import se.su.dsv.scipro.peer.PeerReviewRepositoryImpl;
@ -270,4 +271,9 @@ public class RepositoryConfiguration {
public ProjectFileRepositoryImpl projectFileRepository(Provider<EntityManager> em) {
return new ProjectFileRepositoryImpl(em);
}
@Bean
public NotificationEventRepositoryImpl notificationEventRepository(Provider<EntityManager> em) {
return new NotificationEventRepositoryImpl(em);
}
}