FileDocCategorySizeDatePackage
PropertyValueException.javaAPI DocHibernate 3.2.51303Sat Feb 12 00:19:50 GMT 2005org.hibernate

PropertyValueException

public class PropertyValueException extends HibernateException
Thrown when the (illegal) value of a property can not be persisted. There are two main causes:
  • a property declared not-null="true" is null
  • an association references an unsaved transient instance
author
Gavin King

Fields Summary
private final String
entityName
private final String
propertyName
Constructors Summary
public PropertyValueException(String s, String entityName, String propertyName)

		super(s);
		this.entityName = entityName;
		this.propertyName = propertyName;
	
Methods Summary
public static java.lang.StringbuildPropertyPath(java.lang.String parent, java.lang.String child)
Return a well formed property path. Basicaly, it will return parent.child

param
parent parent in path
param
child child in path
return
parent-child path

		return new StringBuffer(parent).append('.").append(child).toString();
	
public java.lang.StringgetEntityName()

		return entityName;
	
public java.lang.StringgetMessage()

		return super.getMessage() + ": " +
			StringHelper.qualify(entityName, propertyName);
	
public java.lang.StringgetPropertyName()

		return propertyName;