Top Description Fields Constructors
org.hibernate

public Class LazyInitializationException

extends HibernateException
Class Inheritance
Imports
org.hibernate.internal.CoreMessageLogger, org.jboss.logging.Logger

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.

Author
Gavin King
See Also
Hibernate#initialize(Object), Hibernate#isInitialized(Object)

Field Summary

Modifier and TypeField and Description
private static final CoreMessageLogger

Constructor Summary

AccessConstructor and Description
public
LazyInitializationException(String
A message explaining the exception condition
message
)

Constructs a LazyInitializationException using the given message.

Field Detail

LOGback to summary
private static final CoreMessageLogger LOG

Constructor Detail

LazyInitializationExceptionback to summary
public LazyInitializationException(String message)

Constructs a LazyInitializationException using the given message.

Parameters
message:String

A message explaining the exception condition