Uploaded image for project: 'DeltaSpike'
  1. DeltaSpike
  2. DELTASPIKE-1165

Repositories support returning Stream<E> in addition to List<E>

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.6.1
    • 1.7.0
    • Data-Module
    • None

    Description

      It's a nice feature that helps make the code look a bit more modern, especially when paired up with Optional<E> support.

      Since JPA returns List<E> on the query interface, we can just return list.stream() to give back a stream of data, avoiding the caller's need to wrap a stream.

      Attachments

        Activity

          People

            johndament John D. Ament
            johndament John D. Ament
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: