Fixed query-based read-only support during iteration.
This commit is contained in:
parent
76bac3268a
commit
993e308e96
|
@ -90,7 +90,7 @@ public abstract class AbstractProducedQuery<R> implements QueryImplementor<R> {
|
||||||
private Integer timeout;
|
private Integer timeout;
|
||||||
private boolean cacheable;
|
private boolean cacheable;
|
||||||
private String cacheRegion;
|
private String cacheRegion;
|
||||||
private boolean readOnly;
|
private Boolean readOnly;
|
||||||
|
|
||||||
private LockOptions lockOptions = new LockOptions();
|
private LockOptions lockOptions = new LockOptions();
|
||||||
|
|
||||||
|
@ -212,7 +212,10 @@ public abstract class AbstractProducedQuery<R> implements QueryImplementor<R> {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isReadOnly() {
|
public boolean isReadOnly() {
|
||||||
return readOnly;
|
return ( readOnly == null ?
|
||||||
|
producer.getPersistenceContext().isDefaultReadOnly() :
|
||||||
|
readOnly
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue