Class StatefulPersistenceContext

  • All Implemented Interfaces:

    public class StatefulPersistenceContext
    extends Object
    implements PersistenceContext
    A stateful implementation of the PersistenceContext contract, meaning that we maintain this state throughout the life of the persistence context.
    Implementation Note:
    There is meant to be a one-to-one correspondence between a SessionImpl and a PersistenceContext. Event listeners and other session collaborators then use the PersistenceContext to drive their processing.