John D. Ament created DELTASPIKE-1165:
-----------------------------------------
Summary: Repositories support returning Stream<E> in addition to
List<E>
Key: DELTASPIKE-1165
URL: https://issues.apache.org/jira/browse/DELTASPIKE-1165
Project: DeltaSpike
Issue Type: New Feature
Components: Data-Module
Affects Versions: 1.6.1
Reporter: John D. Ament
Assignee: John D. Ament
Fix For: 1.7.0
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
return a stream.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)