@Override
    public SearchResultsBean<NotificationEntity> searchNotificationsByUser(String recipientUserId, SearchCriteriaBean searchCriteria)
            throws StorageException {

        var recipientFilter = new SearchCriteriaFilterBean()
             .setName("recipient")
             .setOperator(SearchCriteriaFilterOperator.eq)
             .setValue(recipientUserId);

        searchCriteria.getFilters().add(recipientFilter);

        return super.find(searchCriteria, Set.of(new OrderByBean(true, NotificationEntity_.ID)), NotificationEntity.class, true);
    }
Storage for simple notifications system

@author Marc Savy {@literal <marc@blackparrotlabs.io>}
manager/api/jpa/src/main/java/io/apiman/manager/api/jpa/NotificationRepositoryImpl.java