Class StatefulPersistenceContext

java.lang.Object
org.hibernate.engine.StatefulPersistenceContext
All Implemented Interfaces:
PersistenceContext

public class StatefulPersistenceContext extends Object implements PersistenceContext
A PersistenceContext represents the state of persistent "stuff" which Hibernate is tracking. This includes persistent entities, collections, as well as proxies generated.

There is meant to be a one-to-one correspondence between a SessionImpl and a PersistentContext. The SessionImpl uses the PersistentContext to track the current state of its context. Event-listeners then use the PersistentContext to drive their processing.