Top Description Constructors Methods
org.hibernate

public Class ObjectNotFoundException

extends UnresolvableObjectException
Class Inheritance
Imports
java.io.Serializable

Thrown when Session.load() fails to select a row with the given primary key (identifier value). This exception might not be thrown when load() is called, even if there was no row on the database, because load() returns a proxy if possible. Applications should use Session.get() to test if a row exists in the database.

Like all Hibernate exceptions, this exception is considered unrecoverable.
Author
Gavin King

Constructor Summary

AccessConstructor and Description
public
ObjectNotFoundException(Serializable
The identifier of the entity
identifier
,
String
The name of the entity
entityName
)

Constructs a ObjectNotFoundException using the given information.

Method Summary

Inherited from org.hibernate.UnresolvableObjectException:
getEntityNamegetIdentifiergetMessagethrowIfNull

Constructor Detail

ObjectNotFoundExceptionback to summary
public ObjectNotFoundException(Serializable identifier, String entityName)

Constructs a ObjectNotFoundException using the given information.

Parameters
identifier:Serializable

The identifier of the entity

entityName:String

The name of the entity