FileDocCategorySizeDatePackage
UnresolvableObjectException.javaAPI DocHibernate 3.2.51213Sat Feb 12 00:19:50 GMT 2005org.hibernate

UnresolvableObjectException

public class UnresolvableObjectException extends HibernateException
Thrown when Hibernate could not resolve an object by id, especially when loading an association.
author
Gavin King

Fields Summary
private final Serializable
identifier
private final String
entityName
Constructors Summary
public UnresolvableObjectException(Serializable identifier, String clazz)

		this("No row with the given identifier exists", identifier, clazz);
	
UnresolvableObjectException(String message, Serializable identifier, String clazz)

		super(message);
		this.identifier = identifier;
		this.entityName = clazz;
	
Methods Summary
public java.lang.StringgetEntityName()

		return entityName;
	
public java.io.SerializablegetIdentifier()

		return identifier;
	
public java.lang.StringgetMessage()

		return super.getMessage() + ": " +
			MessageHelper.infoString(entityName, identifier);
	
public static voidthrowIfNull(java.lang.Object o, java.io.Serializable id, java.lang.String clazz)

		if (o==null) throw new UnresolvableObjectException(id, clazz);