Top Description Fields Constructors Methods
org.hibernate

public Class PropertyValueException

extends HibernateException
Class Inheritance
Imports
org.hibernate.util.StringHelper

Thrown when the (illegal) value of a property can not be persisted. There are two main causes:
Author
Gavin King

Field Summary

Modifier and TypeField and Description
private final String
private final String

Constructor Summary

AccessConstructor and Description
public
PropertyValueException(String s, String entityName, String propertyName)

Method Summary

Modifier and TypeMethod and Description
public static String

Returns:

parent-child path
buildPropertyPath
(String
parent in path
parent
,
String
child in path
child
)

Return a well formed property path.

public String
public String
getMessage()

Overrides java.lang.Throwable.getMessage.

Returns the detail message string of this throwable.
public String

Field Detail

entityNameback to summary
private final String entityName
propertyNameback to summary
private final String propertyName

Constructor Detail

PropertyValueExceptionback to summary
public PropertyValueException(String s, String entityName, String propertyName)

Method Detail

buildPropertyPathback to summary
public static String buildPropertyPath(String parent, String child)

Return a well formed property path. Basicaly, it will return parent.child

Parameters
parent:String

parent in path

child:String

child in path

Returns:String

parent-child path

getEntityNameback to summary
public String getEntityName()
getMessageback to summary
public String getMessage()

Overrides java.lang.Throwable.getMessage.

Doc from java.lang.Throwable.getMessage.

Returns the detail message string of this throwable.

Returns:String

the detail message string of this Throwable instance (which may be null).

getPropertyNameback to summary
public String getPropertyName()