Fix some remaining issues from the Spring migration #20
@ -50,6 +50,7 @@ public class NotificationServiceImpl extends AbstractServiceImpl<Notification,Lo
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@Transactional
|
||||||
public void setRead(User user, NotificationEvent notificationEvent, boolean read) {
|
public void setRead(User user, NotificationEvent notificationEvent, boolean read) {
|
||||||
Iterable<Notification> notifications = findAll(
|
Iterable<Notification> notifications = findAll(
|
||||||
QNotification.notification.notificationEvent.eq(notificationEvent)
|
QNotification.notification.notificationEvent.eq(notificationEvent)
|
||||||
@ -62,6 +63,7 @@ public class NotificationServiceImpl extends AbstractServiceImpl<Notification,Lo
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@Transactional
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
// This looks so wrong but a List<Notification> is what we actually get
|
// This looks so wrong but a List<Notification> is what we actually get
|
||||||
// during runtime, see SCIPRO-167935. Reflection so awesome...
|
// during runtime, see SCIPRO-167935. Reflection so awesome...
|
||||||
|
Loading…
x
Reference in New Issue
Block a user