tenwit wrote:
Ah, I see what you mean. Query.iterator() uses scrollable result sets if it can, allowing you to defer loading. Query.list() will load all entities that you query for, before the call to list() returns. It won't do anything special about eagerly loading associated entities: you have to write your query to do that, if that's what you need.
Maybe you can help answer a somewhat related issue I'm having. When I call Query.list(), I get a collection back, but the elements in the collection are null... I haven't been able to figure out how to resolve this for almost a week.
Any advice is appreciated!