initializeNonLazyCollections()
Force initialization of all non-lazy collections encountered during
the current two-phase load (actually, this is a no-op, unless this
is the "outermost" load)

boolean

isDefaultReadOnly()
Will entities and proxies that are loaded into this persistence
context be made read-only by default?
To determine the read-only/modifiable setting for a particular entity
or proxy:

proxyFor(EntityPersister persister,
EntityKey key,
Object impl)
Return the existing proxy associated with the given EntityKey, or the
third argument (the entity associated with the key) if no proxy exists.

narrowProxy

If the existing proxy is insufficiently "narrow" (derived), instantiate a new proxy
and overwrite the registration of the old one. This breaks == and occurs only for
"class" proxies rather than "interface" proxies. Also init the proxy to point to
the given target implementation if necessary.

setDefaultReadOnly

void setDefaultReadOnly(boolean readOnly)

Change the default for entities and proxies loaded into this persistence
context from modifiable to read-only mode, or from modifiable to read-only
mode.
Read-only entities are not dirty-checked and snapshots of persistent
state are not maintained. Read-only entities can be modified, but
changes are not persisted.
When a proxy is initialized, the loaded entity will have the same
read-only/modifiable setting as the uninitialized
proxy has, regardless of the persistence context's current setting.
To change the read-only/modifiable setting for a particular entity
or proxy that is already in this session:
+ * @see PersistenceContext#setReadOnly(Object,boolean)

Parameters:

readOnly - true, the default for loaded entities/proxies is read-only;
false, the default for loaded entities/proxies is modifiable

setReadOnly

Set an unmodified persistent object to read-only mode, or a read-only
object to modifiable mode.
Read-only entities are not dirty-checked and snapshots of persistent
state are not maintained. Read-only entities can be modified, but
changes are not persisted.
When a proxy is initialized, the loaded entity will have the same
read-only/modifiable setting as the uninitialized
proxy has, regardless of the session's current setting.
If the entity or proxy already has the specified read-only/modifiable
setting, then this method does nothing.
To set the default read-only/modifiable setting used for
entities and proxies that are loaded into this persistence context:

Parameters:

entityOrProxy, - an entity or HibernateProxy

readOnly, - if true, the entity or proxy is made read-only;
if false, the entity or proxy is made modifiable.