Hello,
I have a general question. If I do a simple query using Hibernate/JPA, say to fetch all those customers that fulfill some condition. And the result comes back with thousands of entries. Now I associate this result to a locally-defined list of the same Entity type:
List <Customers> result = // My Query for (Customers c: result){ // do something }
The question is, where is the result located? Knowing that my RDBMS is on the secondary-memory, is my result loaded as persistent main-memory objects, that is deleted as soon as my application ends? Is there a possibility to create pure secondary-memory objects out of my query result?
Regards, A.
|