Some people override the CrudRepository\'s method findAll to return an Stream (java 8), but I saw they finally transform the Stream to a List in order to send it through a rest
There might be various reasons why people want to use Stream
s.
If you do any processing that you can't or don't want to do in the database, Stream
s might be nicer to work with.
It's so hip and "functional". Almost everybody still seems to be experimenting what the right combination of features is. So it is perfectly possible and even likely that there is no benefit in using Stream
s. But then, it doesn't cost much either.