Beginner |
|
Joined: Fri Oct 28, 2005 10:46 am Posts: 37
|
From reading the reference guide, I was under the impression that properties of persisted objects would only be lazy-loadable if a certain build-time process was run (there's something about an Ant task). But calling Session.load gives me an instance on which even simple properties like ints and Strings are proxied. On the other hand, Criteria.list returns entities of the same type that are not proxied. So I guess I have two questions:
1) What's the story on lazy loading properties?
2) Why the difference between loading a single entity and loading a collection of entities?
|
|