我已经在此类存储库中创建了此查询:
@Repository
public interface MenuAlertNotificationRepository
extends CrudRepository<MenuAlertNotification, Long> {
List<MenuAlertNotification> findByUserAndCreationDateAfter(User user, LocalDateTime creationDate);
}
但是我意识到有1个元素是null
。怎么会来?
menuAlertNotifications
.stream()
.forEach(
element -> System.out.println("element-----> " + element));