Document that StatelessSession does not support lazy loading

While experimenting with StatelessSession I discovered that it does not
support lasy loading. I think this isn't imediately obvious and worth to
be included in the documentation.

See also http://stackoverflow.com/questions/34800788/does-statelesssession-support-lazy-loading
This commit is contained in:
Bogdan Calmac 2016-01-15 16:26:46 -08:00
parent 68446ca029
commit 2bad69f66a
1 changed files with 1 additions and 0 deletions

View File

@ -96,6 +96,7 @@ Limitations of `StatelessSession`:
* Operations performed using a stateless session never cascade to associated instances.
* Collections are ignored by a stateless session.
* Lazy loading of associations is not supported.
* Operations performed via a stateless session bypass Hibernate's event model and interceptors.
* Due to the lack of a first-level cache, Stateless sessions are vulnerable to data aliasing effects.
* A stateless session is a lower-level abstraction that is much closer to the underlying JDBC.