Hi Alex,
But in a stateless session there is no lazy loading, and no cache.
That is is the whole point of a stateless session.
(see docs:
http://docs.jboss.org/hibernate/orm/3.3/api/org/hibernate/StatelessSession.html
and question about lazy loading
http://www.mail-archive.com/nhu...@googlegroups.com/msg12715.html)
I have tracked this down to what looks like a very weird bug. If you
mark one of the properties of an entity with lazy="no-proxy", then the
entity itself is returned as a proxy when you call
IStatelessSession.Get<T>();
regards,
Jordan.
On Apr 30, 5:51 pm, Alex Vilela <
alexvil...@gmail.com> wrote:
> Hi Jordan,
>
> AKAIK the proxy is related to whether you want to lazy load your entity
> properties and not whether you want to use the first/second level cache (a
> stateless session).
>
> Alex Vilela
>