Does it make sense to return a Stream in the jpa method?
I'm looked at Query interface, and it just getResult and make it as stream. I can do it myself.
public interface TypedQuery<X> extends Query {
List<X> getResultList();
default Stream<X> getResultStream() {
return this.getResultList().stream();
}
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744764791a4592392.html
评论列表(0条)