mirror of
https://github.com/google/nomulus.git
synced 2025-07-21 10:16:07 +02:00
Fix ReadOnlyCheckingQuery's streaming method (#1329)
* Fix ReadOnlyCheckingQuery's streaming method Following up to PR 1314: fix one more query defaulting to List when stream() is invoked.
This commit is contained in:
parent
42012f6cce
commit
57c5c78c7c
1 changed files with 6 additions and 0 deletions
|
@ -21,6 +21,7 @@ import java.util.Date;
|
|||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.stream.Stream;
|
||||
import javax.persistence.FlushModeType;
|
||||
import javax.persistence.LockModeType;
|
||||
import javax.persistence.Parameter;
|
||||
|
@ -41,6 +42,11 @@ class ReadOnlyCheckingQuery implements Query {
|
|||
return delegate.getResultList();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Stream getResultStream() {
|
||||
return delegate.getResultStream();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object getSingleResult() {
|
||||
return delegate.getSingleResult();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue