Fix for #228 - LazyLoad bug with QueryIterator. Getting EntityNotFoundException("Bean has been deleted - lazy loading failed")

This commit is contained in:
rbygrave
2015-01-12 20:41:37 +13:00
parent 961b219e3e
commit b1b9f68b7e
10 changed files with 175 additions and 32 deletions
@@ -44,8 +44,11 @@ public interface LoadContext {
/**
* Set the persistence context used by this query and future lazy loading.
* <p>
* Used by query iterator when processing large result sets.
* </p>
*/
public void setPersistenceContext(PersistenceContext persistenceContext);
public void resetPersistenceContext(PersistenceContext persistenceContext);
/**
* Register a Bean for lazy loading.