Package org.hibernate

Class LazyInitializationException

All Implemented Interfaces:
Serializable

public class LazyInitializationException extends HibernateException
Indicates an attempt to access unfetched data outside the context of an open stateful Session.

For example, this exception occurs when an uninitialized proxy or collection is accessed after the session was closed.

See Also:
  • Constructor Details

    • LazyInitializationException

      public LazyInitializationException(String message)
      Constructs a LazyInitializationException using the given message.
      Parameters:
      message - A message explaining the exception condition