Quote:
Yes, I read the very limited documentation on stateless sessions before going this route.
There's
enough documentation about StatelessSession, considering its limited usage.
I'm now improving the User Guide, especially for interesting stuff like
what's the purpose of every annotation. Unfortunately, StatelessSession is not on my agenda, so, if you want more, just send us a Pull Request, and I'll integrate it.
Quote:
I'm looks for DESIGN decisions regarding this choice, not Javadoc copy-pasting.
When you access a lazy Proxy association, this is how the association gets initialized. See the
session parameter? That's why you can't have Proxies for StatelessSession.
Code:
final Object loadedValue = initializer.initializeLazyProperty(
attributeName,
target,
session
);
So, why would it need the Session, right?
Code:
final EntityEntry ownerEntry = session.getPersistenceContext().getEntry( entity );
Code:
session.initializeCollection( collection, false );
Code:
final Serializable id = session.getContextEntityIdentifier( entity );
Makes sense, right? If you are eager to learn more about it, here's the Hibernate package on
GitHub.